bool DragEnabled { get; set; }

robot_2Generated
code_blocksInput

Description

The DragEnabled property of the PhysicsBody class indicates whether drag forces are applied to the physics body. This property is marked as obsolete, meaning it is no longer recommended for use and may be removed in future versions.

Usage

Since DragEnabled is obsolete, it is advised to avoid using this property in new code. Consider using alternative properties or methods to achieve similar functionality, such as adjusting LinearDamping or AngularDamping for controlling the slowing down of the physics body.

Example

// Example of accessing the DragEnabled property
PhysicsBody body = new PhysicsBody();

// Check if drag is enabled (not recommended due to obsolescence)
bool isDragEnabled = body.DragEnabled;

// Set drag enabled (not recommended due to obsolescence)
body.DragEnabled = true;