schteppe / cannon.js

A lightweight 3D physics engine written in JavaScript.
http://schteppe.github.com/cannon.js
MIT License
4.67k stars 709 forks source link

a problem about collision,too tough to work out myself #384

Open zch1234qq opened 6 years ago

zch1234qq commented 6 years ago

ive been making a world with cannonjs&threejs.i run to test the work,when booming a error. here are one sphere and tow box,boxs' masses are zero.sphere is droped.

Cannot read property 'x' of undefined
    at Quaternion.vmult (cannon.js:4458)
    at Narrowphase.(anonymous function).Narrowphase.sphereConvex
    at Narrowphase.getContacts (cannon.js:11256)
    at World.internalStep (cannon.js:13359)
    at World.step (cannon.js:13197)

its the consolelog.what confusjing most is that next: when the error was throwed,then i change the number of boxes to one.and the error disappear. whats the matter with my code?and does cannonjs's follower have a BBS to discuss problem?i wanna know.thank U!

schteppe commented 6 years ago

Hi. Can you post some code so we can reproduce the problem?