gbisocoli
02-01-2009 01:02:40
Hi, I've been handling movement for my character applying forces to his body (NxOgre::Body) through addForce and MoveTowards methods. But now I want to do it with the Character class (NxOgre::CharacterSystem::Character). I have some questions:
1. About the Constructor: Character(const NxString& identifier, Pose, CharacterModel*, CharacterParams, Scene*);
CharacterModel*, what is this? I've seen CharacterModel.h and CharacterModel.cpp, but I don't understand what this is and what values should I give it. CharacterParams, I don't know what parameters I must change.
2. I have to add movement to the character with forward(), backward(), etc, and then, every frame, call the method simulate(const TimeStep& ts), is this correct? How can I "change" evt.timeSinceLastFrame to NxOgre::TimeStep?
3. How can I make the conection with this character to the corresponding body? I've already created the Entity, the SceneNode and the NxOgre body.
The character I'm trying to do is human. Thanks for reading and for answering!
1. About the Constructor: Character(const NxString& identifier, Pose, CharacterModel*, CharacterParams, Scene*);
CharacterModel*, what is this? I've seen CharacterModel.h and CharacterModel.cpp, but I don't understand what this is and what values should I give it. CharacterParams, I don't know what parameters I must change.
2. I have to add movement to the character with forward(), backward(), etc, and then, every frame, call the method simulate(const TimeStep& ts), is this correct? How can I "change" evt.timeSinceLastFrame to NxOgre::TimeStep?
3. How can I make the conection with this character to the corresponding body? I've already created the Entity, the SceneNode and the NxOgre body.
The character I'm trying to do is human. Thanks for reading and for answering!