float AngularDrag { get; set; }

robot_2Generated
code_blocksInput

Description

The AngularDrag property of the PhysicsBody class represents the angular drag applied to the physics body. Angular drag is a measure of how much the body will slow down its rotation over time due to resistance. This property is marked as obsolete, indicating that it should not be used in new code as it may be removed in future versions.

Usage

Since AngularDrag is marked as obsolete, it is recommended to avoid using this property in your code. Instead, consider using other properties or methods that provide similar functionality without the obsolescence warning.

Example

// Example of accessing the AngularDrag property (not recommended due to obsolescence)
PhysicsBody body = new PhysicsBody();
float angularDrag = body.AngularDrag; // Obsolete usage