Game Development Reference
In-Depth Information
8.
Tip the view so you can access the grip on the underside of the collider.
9.
Select the Rotation button so the gizmo won't get in the way of the
bottom grip.
10.
Holding the Shift key down, grab the grip and move the bottom of the collider
up to the top of the door opening (Figure 4-28 ).
Figure 4-28. Moving the collider's base up with the bottom grip
Even with the grips, the scaling and positioning of collider components is not as easy as
manipulating their parent objects. For the side colliders, you will begin with a Cube object. You could
add a Box Collider to an empty gameObject, but a Cube will be quicker to set up.
1.
Create a Cube, and name it Gate-Side Collider .
2.
Position and scale it to fit one side of the Gateway (Figure 4-29 ).
 
Search WWH ::




Custom Search