Game Development Reference
In-Depth Information
Figure 7-24. The contents of the New Area array on Occluder 2b On
Tip If your naming has gotten muddled, don't worry. The main thing to remember is that the trigger objects
on one side of the wall always control the visibility of the objects on the other side of the wall. The trigger
closest to the door always turns things on, and the one furthest away always turns things off.
4.
Disable the Mesh Renderer component on the Occluder prefab in the
Hierarchy view.
To test the occluders, you will require something to drive through the gate. It's time to bring the GGD
back into the scene.
1.
Click Play, and drive the Gnomatic Garden Defender backwards and forward
through the gate.
The areas disappear and reappear as the Gnomatic Garden Defender goes through the gateway
(Figure 7-25 ).
Figure 7-25. The occlusion system in action
 
Search WWH ::




Custom Search