Package com.jme3.bullet.collision
Interface PhysicsCollisionListener
- All Known Implementing Classes:
DynamicAnimControl
,KinematicRagdollControl
public interface PhysicsCollisionListener
Interface to receive notifications whenever an object in a particular physics
space collides.
This interface is shared between JBullet and Native Bullet.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collision
(PhysicsCollisionEvent event) Invoked when a collision happened in the PhysicsSpace.
-
Method Details
-
collision
Invoked when a collision happened in the PhysicsSpace. Invoked on the render thread.Do not retain the event object, as it will be reused after the collision() method returns. Copy any data you need during the collide() method.
- Parameters:
event
- the event that occurred (not null, reusable)
-