CompoundShape position

Ask other users for help.

CompoundShape position

Postby Goransi » Fri Mar 01, 2013 10:40 am

Is there any documentation regarding the handling of CompoundShape position?
If I create a compound shape consisting of two boxes (sized 1,1,1) with positions 0,0,1 and 0,0,2 respectivly - what does the position of the CompondShape mean? If I set the position of the CompondShape to 0,0,1 will the first box be located at 0,0,2 (ie CompondShape position + subshape position)? Or will the DoShifting move the subshapes and result in first box being located at CompondShape position + subshape position - shift)?

Goran
Goransi
 
Posts: 1
Joined: Fri Mar 01, 2013 9:51 am

Re: CompoundShape position

Postby noone » Wed Mar 06, 2013 1:40 pm

Body.Position is always the center of mass of the object. Both objects get shifted by the engine, so 0,0,0 is the com.
User avatar
noone
Site Admin
 
Posts: 437
Joined: Wed Jul 28, 2010 2:02 pm


Return to Questions and Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron