Implementing object rotation - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Open Source Collaboration (https://www.frictionalgames.com/forum/forum-27.html) +--- Forum: Overture (https://www.frictionalgames.com/forum/forum-29.html) +--- Thread: Implementing object rotation (/thread-17830.html) |
Implementing object rotation - Jack1 - 08-18-2012 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 |