Open gregmax17 opened 6 years ago
Apparently I came up with a solution that seems to work at least for the time being. I added a flag 'isTrigger' to the RigidBody and modified World.js at line 530 adding another condition:
if(( b1.isDynamic && !b1.sleeping || b2.isDynamic && !b2.sleeping ) && (!b1.isTrigger && !b2.isTrigger) ) contact.updateManifold();
By doing so the body doesn't physically react to collisions, but still trigger contacts.
@lo-th Do you think it could affect your code elsewhere?
Apologizes in advance for repeating myself, I'm just really looking forward to answer.
I'm continuing off of this issue here: https://github.com/lo-th/Oimo.js/issues/61