Source Academy Modules
    Preparing search index...

    Function createFloor

    • Create a floor. This function is a wrapper around createCuboid.

      The returned Cuboid object is designed to be added to the world using addControllerToWorld.

      This is a Controller function and should be called within init_simulation.

      Parameters

      • physics: Physics

        The physics engine of the world. See createPhysics

      • renderer: Renderer

        The renderer engine of the world. See createRenderer

      Returns Cuboid

      Cuboid