Skip to content

Commit

Permalink
Conserve rotation independent of physics
Browse files Browse the repository at this point in the history
  • Loading branch information
kitskub committed Sep 27, 2014
1 parent da1d01b commit f185271
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public void onPostPhysicsTick() {
Transform newLive;
do {
oldLive = live.get();
final Transform physicsLive = ReactConverter.toFlowTransform(body.getTransform(), oldLive.getPosition().getWorld(), oldLive.getScale());
final Transform physicsLive = new Transform(new Point(oldLive.getPosition().getWorld(), ReactConverter.toFlowVector3(body.getTransform().getPosition())), oldLive.getRotation(), oldLive.getScale());
if (!oldLive.equals(physicsLive)) {
newLive = physicsLive;
sync();
Expand Down

0 comments on commit f185271

Please sign in to comment.