Game Development Reference
In-Depth Information
Physics Manager
The physics engine has some built-in performance optimization functions, such as “sleeping.”
When a rigidbody's movement and rotation go below a certain limit, the physics engine considers
it stopped. Until the rigidbody is put in motion again, say by another force acting on it or a game
object colliding with it, the physics engine does not burn processing capacity updating it.
The Sleep Velocity and Sleep Angular Velocity property values in the Physics Settings Manager
designate the “sleep” threshold (Figure 12-9 ). If necessary, you can always access a rigidbody to
wake it up by using the rigidbody.WakeUp() function in a script.
Figure 12-9. Project Settings Physics Manager
 
Search WWH ::




Custom Search