Hello there again !
Today... I found some more bugs (or things I haven't thought of) when testing out the camera motion and head-bob. I pressed both the W and S at the same time and the character stopped, which is pretty standard in most first person game (I verified Thief and Dishonored just to be sure. I thought maybe one key had precedence over the other depending which one was pressed first). I monitored myself playing Battlefield 3 and I almost never pressed both at the same time, but still it's an important thing to take into consideration. The result was that the head bob would start playing if I was previously walking. It's pretty dumb to have that walking motion and not record any type of movement. So, I added a bunch more boolean checks to make sure that if the two keys were pressed the head bob would stop and if one key was released I would know which one and continue the head bob motion accordingly. Everything is almost fool proof. I could be doing stupid movement combination and the whole thing would still feel smooth and controlled.
Here's an overview of how this camera / player controller thing is going. I might start to pack up some of the BP code in functions just to tidy it up a little. When testing and creating something I like to have everything laid out in front of my eyes so it's easier to move things around.
Today... I found some more bugs (or things I haven't thought of) when testing out the camera motion and head-bob. I pressed both the W and S at the same time and the character stopped, which is pretty standard in most first person game (I verified Thief and Dishonored just to be sure. I thought maybe one key had precedence over the other depending which one was pressed first). I monitored myself playing Battlefield 3 and I almost never pressed both at the same time, but still it's an important thing to take into consideration. The result was that the head bob would start playing if I was previously walking. It's pretty dumb to have that walking motion and not record any type of movement. So, I added a bunch more boolean checks to make sure that if the two keys were pressed the head bob would stop and if one key was released I would know which one and continue the head bob motion accordingly. Everything is almost fool proof. I could be doing stupid movement combination and the whole thing would still feel smooth and controlled.
Here's an overview of how this camera / player controller thing is going. I might start to pack up some of the BP code in functions just to tidy it up a little. When testing and creating something I like to have everything laid out in front of my eyes so it's easier to move things around.