Game Development Reference
In-Depth Information
This time the camera sucks down to the character as you head through the gate (Figure 7-27 ) and
comes back up as you leave it behind. You could get some clipping if you turn the character in
the center of the gate, especially if the character is off to one side. To avoid it, you could tighten
the minimum distance, add colliders that would funnel the character to the center, increase the
character's collider while in the gateway, or even prevent the character from turning while in the
gateway. Because it is far too easy to get bogged down in details early in a game's development,
you will be leaving it as is.
Figure 7-27. The camera moved close to the character as he passed through the gateway
Even if you have disabled the door functionality to prevent the Gnomatic Garden Defender from
leaving the compound completely, you will want the camera to avoid intersecting the gateway
structures and doors when the character is too close to them.
1.
Right-click over the Distance Detector component, and select Copy
Component.
2.
Select one of the other GardenGate objects.
3.
Right-click over any of its component labels, and select “Paste Component
as New.”
4.
Repeat for the other GardenGates object.
 
Search WWH ::




Custom Search