I'm working to modify the FPS camera to include vertical movement, and am having mixed results. I figured I'd start a question thread and run through the issues I'm having in the hopes not only of getting things ironed out but of learning something in the process.
First, I needed a couple of extra enumerations for the vertical up and down motion (I suppose I could have just used jump and crouch, but I wanted to learn how to do it right). Here is the original code (from SKeyMap.h):
Code: Select all
enum EKEY_ACTION
{
EKA_MOVE_FORWARD = 0,
EKA_MOVE_BACKWARD,
EKA_STRAFE_LEFT,
EKA_STRAFE_RIGHT,
EKA_JUMP_UP,
EKA_CROUCH,
EKA_COUNT,
//! This value is not used. It only forces this enumeration to compile in 32 bit.
EKA_FORCE_32BIT = 0x7fffffff
};
Code: Select all
enum EKEY_ACTION
{
EKA_MOVE_FORWARD = 0,
EKA_MOVE_BACKWARD,
EKA_STRAFE_LEFT,
EKA_STRAFE_RIGHT,
EKA_JUMP_UP,
EKA_CROUCH,
EKA_COUNT,
//! This value is not used. It only forces this enumeration to compile in 32 bit.
EKA_FORCE_32BIT = 0x7fffffff,
EKA_MOVE_UP,
EKA_MOVE_DOWN
};
Code: Select all
enum EKEY_ACTION
{
EKA_MOVE_FORWARD = 0,
EKA_MOVE_BACKWARD,
EKA_STRAFE_LEFT,
EKA_STRAFE_RIGHT,
EKA_JUMP_UP,
EKA_CROUCH,
EKA_COUNT,
EKA_MOVE_UP,
EKA_MOVE_DOWN,
//! This value is not used. It only forces this enumeration to compile in 32 bit.
EKA_FORCE_32BIT = 0x7fffffff
};
Thanks in advance!