Game Development Reference
In-Depth Information
Getting ready
This recipe will expand on the GameCharacterControl and InputAppState
classes from the beginning of the chapter, but it should be easy to adapt to your own pro-
ject. It is mostly used in FPS games, and this is what we will build it for.
Leaning in this example will emulate the player character moving the upper body. To
achieve this and to save us some calculations on how much the camera should be offset
when leaning, we will use the built-in behavior of spatials and how translation and rotation
is propagated through in a node.
Search WWH ::




Custom Search