The LinearDrag
property of the PhysicsBody
class represents the linear drag coefficient applied to the physics body. This property is marked as obsolete, indicating that it is no longer recommended for use and may be removed in future versions.
The LinearDrag
property of the PhysicsBody
class represents the linear drag coefficient applied to the physics body. This property is marked as obsolete, indicating that it is no longer recommended for use and may be removed in future versions.
As this property is marked obsolete, it is recommended to avoid using it in new code. Consider using alternative properties or methods for managing drag or damping effects on physics bodies.
// Example of accessing the LinearDrag property (not recommended due to obsolescence) PhysicsBody body = new PhysicsBody(); float drag = body.LinearDrag; // Obsolete usage