Skip to content

Commit

Permalink
Merge pull request #46 from Elettrotecnica/don-t-destroy-constraint-b…
Browse files Browse the repository at this point in the history
…ody-transform

Do not destroy bodyTransform
  • Loading branch information
diarmidmackenzie authored Oct 11, 2023
2 parents ea1630d + f51aec9 commit b2b2e02
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/ammo-constraint.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ module.exports = AFRAME.registerComponent("ammo-constraint", {
throw new Error("[constraint] Unexpected type: " + data.type);
}

Ammo.destroy(bodyTransform);
Ammo.destroy(targetTransform);

return constraint;
Expand Down

0 comments on commit b2b2e02

Please # to comment.