c-frame / physx

A-Frame physics using PhysX
MIT License
24 stars 4 forks source link

setSolverIterationCounts not available on static bodies #17

Closed diarmidmackenzie closed 1 year ago

diarmidmackenzie commented 1 year ago

11 introduced a bug when highPrecision is set on static objects. Hitting this exception.

Uncaught (in promise) TypeError: this.rigidBody.setSolverIterationCounts is not a function
    at n.update (physx.min.js:1:19303)
    at physx.min.js:1:19012

This fixes that issue.