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 7f49464 commit 7f2e430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ammo-constraint.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = AFRAME.registerComponent("ammo-constraint", {

const bodyTransform = body
.getCenterOfMassTransform()
.inverse()
.invert()
.op_mul(targetBody.getWorldTransform());
const targetTransform = new Ammo.btTransform();
targetTransform.setIdentity();
Expand Down

0 comments on commit 7f2e430

Please sign in to comment.