Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collision Event not firing #312

Open
luismsaraiva opened this issue Nov 19, 2018 · 2 comments
Open

Collision Event not firing #312

luismsaraiva opened this issue Nov 19, 2018 · 2 comments

Comments

@luismsaraiva
Copy link

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
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants