Night Elf
29-08-2007 16:43:35
I'm creating a kinematic object with the following code:
Then I move the object using nxBody->setGlobalPosition(position).
The problem is I can see the object moving just fine in the remote debugger, but it's not visually moving in my scene. Then, when I touch with my character the object (in its real position as shown in the debugger), the graphics update.
What am I doing wrong?
EDIT:
Actually, it appears as if the door moves visually only when my character is close to it. Do kinematic objects have some sort of bounding radius or something that... "activates" them. I can see in the debugger that when I approach a kinematic object it changes colour...
nxBody = g_nxScene->createBody(
meshName,
new NxOgre::TriangleMeshShape(meshName),
NxOgre::Pose(position, orientation),
"kinematic: yes");
Then I move the object using nxBody->setGlobalPosition(position).
The problem is I can see the object moving just fine in the remote debugger, but it's not visually moving in my scene. Then, when I touch with my character the object (in its real position as shown in the debugger), the graphics update.
What am I doing wrong?
EDIT:
Actually, it appears as if the door moves visually only when my character is close to it. Do kinematic objects have some sort of bounding radius or something that... "activates" them. I can see in the debugger that when I approach a kinematic object it changes colour...