Declaration
func GetSleepThreshold(target entity<Rigidbody>) float
go
Parameters
Input
Name | Type | Description |
---|---|---|
Target | Rigidbody | Target Rigidbody |
Return
Type | Description |
---|---|
Float | Sleep threshold. When the movement and rotation of a rigid body are less than this value for a period of time, it will enter a sleep state. The rigid body in sleep state will no longer perform physical calculations. |