Game Development Reference
In-Depth Information
Leaning around corners
If you're making a sneaker or tactical shooter game, a common feature is to be able to lean
around corners. This is used to scout without being seen or shooting without exposing
yourself too much. In this recipe, we'll develop a way to do this with our GameCharac-
terControl class. We will implement functionalities to both handle leaning with keys
(such as the shoulder buttons on a gamepad) and freeform leaning with the mouse.
Search WWH ::




Custom Search