ivansafrin/Polycode — Issue #55: setPosition/setRotation break after AddPhysicsChild
Author: mcclure
Created: 2011-11-24 20:53:38+00:00
State: open

There appears to be this thing where BEFORE an object is added as a physics child, you may call setPosition and setRotation, however afterward these methods have no effect and one must call setTransform() on the physics space to move/rotate an object.

This is actually a reasonable behavior imo but it is **not** documented and needs to be if it is not going to be fixed.

(I assume that what is actually happening is that setPosition and setRotation are being executed, but then on the next visit to the update loop the physics step occurs and the position/rotation are being overridden with something out of box2d).