A rigid body configuration is used for constructions of rigid bodies. An instance of this class can safely be reused, as a rigid body will not have any references to a field of this class.
Constructor
Variables
angularDamping:Float
The damping coefficient of the angular velocity. Set positive values to gradually reduce the angular velocity.
autoSleep:Bool
Whether to automatically sleep the rigid body when it stops moving
for a certain period of time, namely sleepingTimeThreshold
.
linearDamping:Float
The damping coefficient of the linear velocity. Set positive values to gradually reduce the linear velocity.