nartc / angular-three

🧊 THREE.js integration for Angular 🧊
https://angular-three.netlify.app/
MIT License
306 stars 26 forks source link

[Bug] Property 'remove' does not exist on type 'HingeConstraintApi' #123

Closed IRobot1 closed 2 years ago

IRobot1 commented 2 years ago

Discovered by accident while trying different constraint types.

        this.constraint = this.physicConstraint.useHingeConstraint(
          inspect.physics.ref,
          this.marker.ref,
          {
            pivotA: [0, 0, 0], pivotB: [0, 0, 0],
          });
       this.constraint.api.remove(); <-- compiler reports error