Hi
I have a simple World which is symetric, meaning that all Bodies on the left side of the middle Axis are mirrored (Copies) to the right side, too (this is done by multiplying the x value of the position Vector by -1). The Simulation however is not the same, which I would expect:
When not mirroring the Bodies, but just placing a 1:1 Copy on the right side (this is done by adding a given value to the x value of the position Vector), both Body Groups behave the same, as expected:
Does this maybe depend on the order in which the Bodies are added to the world, or are there other (good?) reasons for this? It would be great if Somebody could provide a Solution how to have both Simulations (original and mirrored one) behaving the same way.
Thanks a lot
Dan
I have a simple World which is symetric, meaning that all Bodies on the left side of the middle Axis are mirrored (Copies) to the right side, too (this is done by multiplying the x value of the position Vector by -1). The Simulation however is not the same, which I would expect:
Attachment:
Box2d mirrored objects.png
When not mirroring the Bodies, but just placing a 1:1 Copy on the right side (this is done by adding a given value to the x value of the position Vector), both Body Groups behave the same, as expected:
Attachment:
Box2d copied objects.png
Does this maybe depend on the order in which the Bodies are added to the world, or are there other (good?) reasons for this? It would be great if Somebody could provide a Solution how to have both Simulations (original and mirrored one) behaving the same way.
Thanks a lot
Dan