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 Type
    Method
    Description
    void
    Invoked when a collision happened in the PhysicsSpace.
  • Method Details

    • collision

      void collision(PhysicsCollisionEvent event)
      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)