get body relative position

szombatha
Posts: 1
Joined: Wed Nov 18, 2009 9:20 am

get body relative position

Post by szombatha »

Hey! i am new in bullet physics and i have some problems with physics body and graphics object syncronization. I would like shape specific offset position. i.e. at btBoxShape btVector3(side.x/2, side.y/2, side.z/2).

some experimenting: make a compound shape and make a box shape. At addChildShape given an offset. Thus, the coordinates were synchronized but not the center of mass. Actually looking for something like a dBodyGetRelPointPos-like (ODE physics) opportunity.

In any event i would like to change the coordinates of physics, not graphics engine. I do not have to explain why

Thank you in advance for your help
szombatha

[SOLVED]