Set Sleep Threshold

Physics
दोनों तरफ
क्राफ्टलैंड स्टूडियो मोबाइल और पीसी दोनों पर उपलब्ध है

Setting the sleep threshold

डिक्लेरेशन

func SetSleepThreshold(target entity<Rigidbody>, threshold float)
go

पैरामीटर्स

इनपुट

नाम टाइप विवरण
Target Rigidbody Target Rigidbody
Threshold 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.