N/A wrote:Next, in the main file (i.e. main.cpp), put this where you are "initing" the main class, ie where you put: CGame::CGame( ... ) : variables... :
I implemented the code from the original post. But I'm having a problem moving the Player Node.
In my game loop, I change the value of PlayerNode->getPosition, then do a PlayerNode->setPosition.
The problem is that the player node is moving in world coordinates. So no matter which direction the player is facing, when I push forward (up), it translates in the same direction instead of relative (based off of the orientation).
Any help? Maybe I shouldn't use the getPosition and setPosition methods? I see a method for getRelativeTransformation, but nothing for setting a relative translation. Thanks!
-< Dante >
< Industry Senior QA Tester>
< IT Project Manager>
< Independent Programmer>-