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

Conversation

@RaananW
Copy link
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 3 commits Nov 5, 2015
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
Physics collision events
@deltakosh deltakosh merged commit 8ec2966 into BabylonJS:master Nov 5, 2015
1 check passed
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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.