Source Academy Modules
    Preparing search index...

    Function createPhysics

    • Create a physics engine with default gravity and timestep. Default gravity is -9.81 and timestep is 1/20. A custom physics engine can be created using createCustomPhysics.

      The returned Physics object is designed to be passed into createWorld.

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

      Returns Physics

      Physics