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
public Simulator2D(GameObject gameObject)
Parameters:
gameObject
: Game object on which physics simulation is applied.
The constructor method initializes the
_physicsScene
variable.
public override void OnAwake()
Starts the 2D physics scene.
public override void FixedUpdate()
Updates the 2D physics scene in fixed step.
Last updated