transition.to to a group compiled of a few bodies

hi,

this is my first question in the forum so i hope i can describe my problem properly…

i have an object that is a group with a few bodies  with pivot joints connecting them.

i am dragging the object to a certain place and i want it to snap to proper location,keeping the object’s rotation

while snapping i want it to be scaled down (xScale = 0.65,yScale = 0.65)

i have tried using transition.to to the parent, the group, the individual bodies, but nothing does exactly what i want

any ideas?

thank you! :huh:

Hi @uri.kadushin,

Can you post some code?

Remember that scaling does not work on physics bodies (in regards to collision). You can scale the display object, visually, but it will not affect the collision bounds of the object(s), if that’s important for your simulation.

Sincerely,

Brent Sorrentino

thanks for the replay,

i think the problem is with the joints’ position that were set before the scaling, and after

scaling prevent the different bodies to go to their correct location

has anyone encountered a similar problem?

Hi @uri.kadushin,

Can you post some code?

Remember that scaling does not work on physics bodies (in regards to collision). You can scale the display object, visually, but it will not affect the collision bounds of the object(s), if that’s important for your simulation.

Sincerely,

Brent Sorrentino

thanks for the replay,

i think the problem is with the joints’ position that were set before the scaling, and after

scaling prevent the different bodies to go to their correct location

has anyone encountered a similar problem?