HookerBoots
18-01-2011 00:12:37
Hi everyone,
I have been working with Ogre for a while now, but just moved onto the physics side of my development. I have got the 1.7 terrain working with heightfields, collision detection working, but the one thing, I cannot figure out, is how to change the rotation of the background character. I've searched the forums, looked at the documentation, but I cannot seem to find out what I am missing.
I figured it would be in the helper class "Critter::CharacterInputHelper" but from what I can tell, it doesn't deal with the rotation of your character. Nor is there anything that I can find in the "Critter::BackgroundCharacter" class. This leaves the "NxOgre::Actor" class, but unfortunately I am still unfamiliar with all of it thus-far.
My goal, change the rotation of the character based on mouse movement. (360 rotation obviously). Also, yes, I know the plans for background character's to be used with NPC's, and I fully intend to use them for that when I have all this figured out and the player controlled class is completed by Master B.
Anyways, if anyone has a solution to this, it would be greatly appreciated. Thanks in advance!
Cheers!
*EDIT*
I'm using the latest NxOgre / Critter from github. Unless new commits were made in the last 12 hours.... (from this post)
*END EDIT*
I have been working with Ogre for a while now, but just moved onto the physics side of my development. I have got the 1.7 terrain working with heightfields, collision detection working, but the one thing, I cannot figure out, is how to change the rotation of the background character. I've searched the forums, looked at the documentation, but I cannot seem to find out what I am missing.
I figured it would be in the helper class "Critter::CharacterInputHelper" but from what I can tell, it doesn't deal with the rotation of your character. Nor is there anything that I can find in the "Critter::BackgroundCharacter" class. This leaves the "NxOgre::Actor" class, but unfortunately I am still unfamiliar with all of it thus-far.
My goal, change the rotation of the character based on mouse movement. (360 rotation obviously). Also, yes, I know the plans for background character's to be used with NPC's, and I fully intend to use them for that when I have all this figured out and the player controlled class is completed by Master B.
Anyways, if anyone has a solution to this, it would be greatly appreciated. Thanks in advance!
Cheers!
*EDIT*
I'm using the latest NxOgre / Critter from github. Unless new commits were made in the last 12 hours.... (from this post)
*END EDIT*