The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Implementing object rotation
Jack1 Offline
Junior Member

Posts: 25
Threads: 12
Joined: Dec 2011
Reputation: 0
#1
Implementing object rotation

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
(This post was last modified: 09-30-2012, 07:06 PM by Jack1.)
08-18-2012, 05:30 PM
Find


Messages In This Thread
Implementing object rotation - by Jack1 - 08-18-2012, 05:30 PM



Users browsing this thread: 1 Guest(s)