float AngularDamping { get; set; }

robot_2Generated
code_blocksInput

Description

The AngularDamping property of the Rigidbody class represents the angular damping factor applied to the rigidbody. Angular damping is a measure of how much the rotation of the rigidbody is reduced over time due to resistance. This property is useful for simulating effects like air resistance or friction that slow down the rotation of an object.

Usage

To use the AngularDamping property, you can get or set its value to control the rotational damping of a Rigidbody component. A higher value will result in more damping, causing the object to slow its rotation more quickly.

Example usage:

Rigidbody myRigidbody = new Rigidbody();
myRigidbody.AngularDamping = 0.5f; // Sets the angular damping to 0.5
float currentDamping = myRigidbody.AngularDamping; // Retrieves the current angular damping value

Example

Rigidbody myRigidbody = new Rigidbody();
myRigidbody.AngularDamping = 0.5f; // Sets the angular damping to 0.5
float currentDamping = myRigidbody.AngularDamping; // Retrieves the current angular damping value