Class PxUserControllerHitReport

java.lang.Object
physx.NativeObject
physx.character.PxUserControllerHitReport
Direct Known Subclasses:
PxUserControllerHitReportImpl

public class PxUserControllerHitReport extends NativeObject
User callback class for character controller events.

Note: Character controller hit reports are only generated when move is called.

  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxUserControllerHitReport

      protected PxUserControllerHitReport()
    • PxUserControllerHitReport

      protected PxUserControllerHitReport(long address)
  • Method Details

    • wrapPointer

      public static PxUserControllerHitReport wrapPointer(long address)
    • arrayGet

      public static PxUserControllerHitReport arrayGet(long baseAddress, int index)
    • onShapeHit

      public void onShapeHit(PxControllerShapeHit hit)
      Called when current controller hits a shape.

      This is called when the CCT moves and hits a shape. This will not be called when a moving shape hits a non-moving CCT.

      Parameters:
      hit - Provides information about the hit.
      See Also:
    • onControllerHit

      public void onControllerHit(PxControllersHit hit)
      Called when current controller hits another controller.
      Parameters:
      hit - Provides information about the hit.
      See Also:
    • onObstacleHit

      public void onObstacleHit(PxControllerObstacleHit hit)
      Called when current controller hits a user-defined obstacle.
      Parameters:
      hit - Provides information about the hit.
      See Also: