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

Conversation

Projects
None yet
2 participants
@RaananW
Member

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.

RaananW added some commits Nov 5, 2015

Adding onPhysicsCollide to AbstractMesh
Function will be called if the physics engine detects a collision with
any other mesh.
Collision callbacks for CannonJS
This will register an event callback for meshes that have the
onPhysicsCollide function set.
physics collision callback for OimoJO
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

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@RaananW RaananW deleted the RaananW:physics-collision-events branch Nov 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment