Simulator2D

This class provides a basic structure for 2D physics simulation.

Members

  • private PhysicsScene2D _physicsScene:

    • A _physicsScene variable that represents a 2D physics scene.

Methods

  1. public Simulator2D(GameObject gameObject)
    • Parameters:

      • gameObject: Game object on which physics simulation is applied.

    • The constructor method initializes the _physicsScene variable.

  2. public override void OnAwake()
    • Starts the 2D physics scene.

  3. public override void FixedUpdate()
    • Updates the 2D physics scene in fixed step.

Last updated