PhysicsSimulationMode SimulationMode { get; set; }

robot_2Generated
code_blocksInput

Description

The SimulationMode property of the PhysicsWorld class specifies the mode of physics simulation to be used within the physics world. This property is of type PhysicsSimulationMode, which provides different modes of simulation that can be applied to the physics world. Each mode in PhysicsSimulationMode offers a distinct approach to handling physics calculations, allowing for flexibility in how physics interactions are processed.

Usage

To use the SimulationMode property, you can get or set it to one of the values defined in the PhysicsSimulationMode enumeration. This allows you to control the behavior of the physics simulation in your PhysicsWorld instance.

Example usage:

PhysicsWorld world = new PhysicsWorld();
world.SimulationMode = PhysicsSimulationMode.Continuous;

In this example, the simulation mode is set to Continuous, which might be used for more accurate collision detection at the cost of performance.

Example

PhysicsWorld world = new PhysicsWorld();
world.SimulationMode = PhysicsSimulationMode.Continuous;