chandlerprall / Physijs

Physics plugin for Three.js
MIT License
2.77k stars 455 forks source link

Collision Event not firing #312

Open luismsaraiva opened 6 years ago

luismsaraiva commented 6 years ago

Hi,

I'm trying to collide 2 objects with the event listener but the event doesn't fire.

    object.addEventListener( 'collision', function( other_object, relative_velocity, relative_rotation, contact_normal ) {
        console.log("object collision");
    });

Can anybody help me?

Cheers

benjaminpwagner commented 6 years ago

We are having the same issue.

Here's a link to our repo: https://github.com/light-speed/light-speed-rev1/tree/f/space-box

luismsaraiva commented 5 years ago

@benjaminpwagner I fixed my problem, make sure you aren't using Physijs.Mesh class in the objects.