Help with getWorldTransform

O-san
Posts: 19
Joined: Mon May 11, 2009 8:46 am

Help with getWorldTransform

Post by O-san »

Hi, I've got a problem with getMotionState()->getWorldTransform. The problem only appears when I am running the binary (by using "run" in the IDE or by double clicking the executable in explorer). It does not show up when I am debugging. When I use getWorldTransform it just returns bad data to the values of the btTransform. The values are returned as -1.#IND00 when printing them out. Any pointers to where the problem could occur or where I might look for the solution would be appreciated.
Last edited by O-san on Sun Dec 27, 2009 3:51 pm, edited 2 times in total.
O-san
Posts: 19
Joined: Mon May 11, 2009 8:46 am

Re: Help with getWorldTransform

Post by O-san »

I'm still having the same issues. Has no one experienced this before? :I
pico
Posts: 229
Joined: Sun Sep 30, 2007 7:58 am

Re: Help with getWorldTransform

Post by pico »

Which version of Bullet do you use?

I remember that in older version the world transform was not automatically initialized.
Do you set the world transform before adding the body?