Skip to content

Commit

Permalink
update deprecated inverse() to invert()
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebakerio committed Jan 12, 2021
1 parent c950d0d commit 5a3e171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/body/ammo-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ let AmmoBody = {
} else {
q1.set(quaternion.x(), quaternion.y(), quaternion.z(), quaternion.w());
parentEl.object3D.getWorldQuaternion(q2);
q1.multiply(q2.inverse());
q1.multiply(q2.invert());
el.object3D.quaternion.copy(q1);

v.set(position.x(), position.y(), position.z());
Expand Down

0 comments on commit 5a3e171

Please sign in to comment.