Kinetic body + setGlobalPosition ?

daedar

11-09-2007 02:40:31

Hi,

I need to change the position of kinetic bodies, but it doesn't seems to work. First, I'm using this piece of code to set the body to Kinematic:

nxBody->raiseBodyFlag(NX_BF_KINEMATIC);

the this piece of code has no effect:

nxBody->setGlobalPosition(pos);

I can't change the body's position :(

is there another way to move Kinetic bodies?

Thx :)

betajaen

11-09-2007 08:34:11

It does move, but there's a bug with NxActiveTransform which NxOgre now uses to render things.

You have to call mBody->render(0) after you move it with setGlobalPosition until Ageia fixes it.

daedar

11-09-2007 11:03:03

Great!

Thanks betajaen.