Game Development Reference
In-Depth Information
Figure 3-27. The Lid hinging correctly to the Cube as it spins
The flap is connected to the box at the same place as its anchor point, but that can be adjusted,
giving you plenty of options for nonstandard objects. To change the anchor point, you would first
have to uncheck Auto Configure Connected Anchor.
The Hinge Joint offers more options with its Spring and Motor parameters. With the right settings,
the object will swing back and forth and attempt to get back to its original orientation when hit by an
outside object. The flap on a Wheel of Fortune set up would make use of the spring settings as it is
hit by the pegs.
The Motor lets you spin the object about its anchor.
1.
Duplicate the Lid object, and rename it Flap .
2.
Deactivate the Cube and the Lid.
3.
Select the Flap, and in its Hinge Joint, click the Browse button to open the
browser.
4.
Select None to clear the Cube as the Connected Body (Figure 3-28 ).
 
Search WWH ::




Custom Search