Get Global Sleep Threshold

Physics
Both Server and Client
Both Mobile and PC

Get the global sleep threshold

Declaration

func GetGlobalSleepThreshold() float
go

Parameters

Return

Type Description
Float The sleep threshold is 0.005 by default. When the rigid body’s movement and rotation are less than this value for a period of time, it will enter the sleep state. The rigid body in the sleep state will no longer perform physical calculations.