lo-th / Oimo.js

Lightweight 3d physics engine for javascript
http://lo-th.github.io/Oimo.js
MIT License
3.05k stars 301 forks source link

Body names are duplicated. #91

Open DennisBengs opened 5 years ago

DennisBengs commented 5 years ago

When deleting and creating new bodies over and over, multiple bodies can end up with the same name, which breaks checkContact.

this.id = this.parent.numRigidBodies;

lo-th commented 5 years ago

is a error on collision not on bodie is fix in next release soon you don't have to delete body if is same name is automatically delete