chandlerprall / GoblinPhysics

Collision Detection & Response in JavaScript
http://www.goblinphysics.com
Other
147 stars 18 forks source link

Polyhedron Issue #71

Open GoalieSave25 opened 7 years ago

GoalieSave25 commented 7 years ago

I'm a little new to 3d/physics, but I made a triangular prism and added it to the scene and the array of goblin objects with the exampleutils, everything works completely fine for an inconsistent amount of time then crashes, here's the dump:

Uncaught TypeError: Cannot read property 'silhouette' of undefined at Goblin.GjkEpa.Polyhedron.addVertex (goblin.js:1732) at Object.Goblin.GjkEpa.EPA (goblin.js:1686) at triangleConvex (goblin.js:7998) at meshConvex (goblin.js:8024) at Goblin.NarrowPhase.meshCollision (goblin.js:8045) at Goblin.NarrowPhase.getContact (goblin.js:8067) at Goblin.NarrowPhase.generateContacts (goblin.js:8114) at Goblin.World.step (goblin.js:8389)

Let me know if you need anything else.