foxbat
09-07-2006 05:57:08
Hi. I've added some code to the character controller to return its position with:
However, this only seems to return the creation position of the controller, and never anything else, even though the character has moved. I noticed that in the character controller code, mController->getActor()->getGlobalPosition() is used instead, but this is slightly inaccurate due to the delay caused by the simulation rate. Is there any reason why mController->getPosition() fails to work?
Judging by the novodex documentation, all that seems necessary is to move the controller with move(), and then its position can be determined with getPosition(). This, however, does not appear to work in NxOgre.
mController->getPosition()
.However, this only seems to return the creation position of the controller, and never anything else, even though the character has moved. I noticed that in the character controller code, mController->getActor()->getGlobalPosition() is used instead, but this is slightly inaccurate due to the delay caused by the simulation rate. Is there any reason why mController->getPosition() fails to work?
Judging by the novodex documentation, all that seems necessary is to move the controller with move(), and then its position can be determined with getPosition(). This, however, does not appear to work in NxOgre.