Felipe
06-10-2007 00:10:40
How can i move my NxOgre::Character to a point?
in my game, my bot need move to point
betajaen
06-10-2007 01:28:22
By using the usual way to move a character? Tied up with some algorithm or AI code/library?
Felipe
06-10-2007 21:14:27
i move my character using player->addMovement(NxOgre::Character::DR_Forward);
player->setDirection(Quaternion q);
i want to move my bot AI for my AI library using points.
How can i do it?
betajaen
06-10-2007 21:27:42
With the code you just posted.
Felipe
07-10-2007 20:39:18
how move my bot AI to a point P(x,y,z) using
player->addMovement(NxOgre::Character::DR_Forward);
player->setDirection(Quaternion q);
?
thanks!
betajaen
07-10-2007 20:43:23
By getting your AI library/code to give out a direction to move per frame.
It isn't hard.
kungfoomasta
07-10-2007 21:39:36
Not to be rude, Felipe, but posting a question in 1 sentence and expecting somebody to hand you a solution isn't very realistic, even if people have the answer.
Besides, AI is outside the realm of nxOgre.
Felipe
07-10-2007 21:55:15
my AI library use pathfind and waypoints, using points, so NxOgre isn't a good solution for my moviment subsystem AI?
betajaen
07-10-2007 22:08:24
Then your AI library should provide a directional vector to the character.
Like K. Foo M. said; If you keep going on about it - I'm locking the thread.
Felipe
07-10-2007 22:38:12
yes i have position, orientation of bot AI and the target point(x,y,z).
how movement my character?
betajaen
07-10-2007 22:54:23
Oh my god.
Normalise the target point, and convert to a quaternion.
Don't ask me how to do that because I'm not saying.