float TimeScale { get; set; }

robot_2Generated
code_blocksInput

Description

The TimeScale property of the PhysicsWorld class is a float value that was intended to control the speed of time within the physics simulation. However, this property is marked as obsolete, indicating that it should no longer be used in new code. The property does not have any associated documentation or usage examples, and its functionality may be deprecated or replaced by other mechanisms in the API.

Usage

Since the TimeScale property is marked as obsolete, it is recommended to avoid using it in your code. Instead, look for alternative properties or methods provided by the PhysicsWorld class or related classes that offer similar functionality without the obsolescence warning.

Example

// Example usage of TimeScale property (not recommended due to obsolescence)
PhysicsWorld physicsWorld = new PhysicsWorld();

// This line will likely generate a compiler warning due to the obsolete attribute
float currentTimeScale = physicsWorld.TimeScale;

// Set a new time scale (not recommended)
physicsWorld.TimeScale = 0.5f;