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

Physics collision events #806

Merged
merged 3 commits into from
Nov 5, 2015
Merged

Physics collision events #806

merged 3 commits into from
Nov 5, 2015

Conversation

RaananW
Copy link
Member

@RaananW RaananW commented Nov 5, 2015

A mesh now has a new function callback - onPhysicsCollide that will be triggered if this mesh collides against any other (physics-enabled) mesh.
Both Oimo and Cannon plugins were updated.

Function will be called if the physics engine detects a collision with
any other mesh.
This will register an event callback for meshes that have the
onPhysicsCollide function set.
inspecting Oimo's contacts and firing a callback when a mesh with the
onPhysicsCollide registered collides against another mesh.
deltakosh added a commit that referenced this pull request Nov 5, 2015
@deltakosh deltakosh merged commit 8ec2966 into BabylonJS:master Nov 5, 2015
@RaananW RaananW deleted the physics-collision-events branch November 5, 2015 21:37
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

Successfully merging this pull request may close these issues.

None yet

2 participants