Physics sleep: Difference between revisions

Added category
(Created page (Adapted from Script/Why does my physics object not fall%3F.md page on the old wiki))
 
(Added category)
 
Line 7: Line 7:


For <i>some</i> games it's best to keep all objects awake all the time. This can be done by subtly [[Set Gravity|changing gravity]] each frame, which will wake everything up. [[Gobble]] does this, because the hole moves without physics, yet all objects need to fall into it all the time. Use this method only when needed, as it'll make all physics objects consume CPU resources all the time.
For <i>some</i> games it's best to keep all objects awake all the time. This can be done by subtly [[Set Gravity|changing gravity]] each frame, which will wake everything up. [[Gobble]] does this, because the hole moves without physics, yet all objects need to fall into it all the time. Use this method only when needed, as it'll make all physics objects consume CPU resources all the time.
[[Category:Scripting]]