Game Development Reference
In-Depth Information
How to do it…
1. Open the model in the SceneComposer window by right-clicking on it in Projects
and selecting Edit in SceneComposer .
2. Expand the SkeletonControl class. Located under Root is a Bone called
IKhand.R , as shown in the following screenshot:
3. Right-click on IKhand.R and select Get attachment Node .
4. We should now see a node called IKhand.R_attachnode created at the top level
of the hierarchy. Attach the banana to the node by dragging it into the SceneEx-
plorer window. The banana should now appear in Jaime's hand.
Tip
The banana will not fit perfectly in this recipe. To achieve a perfect fit, the best
way will be to create an actual bone, just for attachments, in the modeling program
of our choice. Since the attached item is attached using the model's center point,
we can expect to have to tweak the position of the items as well.
5. To prove that the banana will actually follow the movement of the model, we can
play an animation. Select AnimControl in the SceneExplorer window and look at
the Properties window. Choose an animation from the drop-down menu.
Search WWH ::




Custom Search