Game Development Reference
In-Depth Information
Creating a reusable character control
To start off the chapter, we will create a class that we can use for various character-con-
trolled purposes. The example describes an FPS character, but the method is the same for
any player-controlled character.
The
Control
class we'll build will be based on
BetterCharacterControl
. It might
be a good idea to have a look at the class or the
TestBetterCharacter
example from
the jMonkeyEngine test package if you want to find out how this works. Another good
starting point would be the input examples from the same package.