• Preparing search index...
  • The search index is not available
Source Academy Modules
  • Source Academy Modules
  • robot_simulation
  • createPhysics

Function createPhysics

  • createPhysics(): Physics
  • 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

    • Defined in bundles/robot_simulation/helper_functions.ts:100

Settings

Member Visibility

Theme

Source Academy Modules
  • Loading...

Generated using TypeDoc