Frictional Games Forum (read-only)

Full Version: Implementing object rotation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to implement the object rotation thing that is in penumbra black plague when you press C key and move your mouse the object that you hold rotates. I'm currently stuck with the input functions in PlayerState_Interact.cpp at void cPlayerState_Grab::OnUpdate(float afTimeStep).
How can i detect if the player presses the C key and then get input from mouse?


EDIT: Solved the thing now Big Grin