Graphics Reference
In-Depth Information
Using Physics Visualization
You can see more information about how the physics is working by selecting Show Physics Visualization in the
Game drop-down of the Information window header, shown in Figure 8-45 . When this is selected, color-coded
physics information will be visible in game play mode when you press P.
The example in Figure 8-46 shows a small chain of three objects that are constrained to each other by rigid
body joins. The leftmost cube is not dynamic; the other two objects are Rigid Body objects.
Figure 8-45 Show Physics Visualization
Figure 8-46 Objects with Rigid Body constraints
WhenPispressed,theRigidBodyobjectsfallinachainandtheirphysicsishighlighted,asshownin Figure
8-47 . Bounding boxes are shown in red. Physics is calculated on the structures displayed in white, which in-
dicate the Rigid Body object's center of gravity, and when the simulation reaches a state of equilibrium, those
structures turn green, indicating that the Rigid Body object is “sleeping.” Sleeping increases the efficiency of
the simulation and reduces the possibility of jitter for motionless objects. Physics visualization is helpful for
 
 
 
 
 
Search WWH ::




Custom Search