Garry's Mod Wiki

Revision Difference

PhysObj:Sleep#552660

<function name="Sleep" parent="PhysObj" type="classfunc"> <description> Makes the physics object "sleep". ⤶ The physics object will no longer be moving unless it is "woken up" by either a collision with another moving object, or by <page>PhysObj:Wake</page>. This is an optimization feature of the physics engine. Makes the physics object "sleep". The physics object will no longer be moving unless it is "woken up" by either a collision with another moving object, or by <page>PhysObj:Wake</page>. ⤶ This is an optimization feature of the physics engine. Normally physics objects will automatically "sleep" when not moving for a short while, to save resources, but it can be used for other purposes, for example to temporarily suspend an object mid air. </description> <realm>Shared</realm> </function>