Package physx.support

Class NativeArrayHelpers

java.lang.Object
physx.NativeObject
physx.support.NativeArrayHelpers

public class NativeArrayHelpers extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • NativeArrayHelpers

      protected NativeArrayHelpers()
    • NativeArrayHelpers

      protected NativeArrayHelpers(long address)
  • Method Details

    • wrapPointer

      public static NativeArrayHelpers wrapPointer(long address)
    • arrayGet

      public static NativeArrayHelpers arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • getU8At

      public static byte getU8At(PxU8ConstPtr base, int index)
      Parameters:
      base - WebIDL type: PxU8ConstPtr [Ref]
      index - WebIDL type: long
      Returns:
      WebIDL type: octet
    • getU16At

      public static short getU16At(PxU16ConstPtr base, int index)
      Parameters:
      base - WebIDL type: PxU16ConstPtr [Ref]
      index - WebIDL type: long
      Returns:
      WebIDL type: unsigned short
    • getU32At

      public static int getU32At(PxU32ConstPtr base, int index)
      Parameters:
      base - WebIDL type: PxU32ConstPtr [Ref]
      index - WebIDL type: long
      Returns:
      WebIDL type: unsigned long
    • getRealAt

      public static float getRealAt(PxRealPtr base, int index)
      Parameters:
      base - WebIDL type: PxRealPtr [Ref]
      index - WebIDL type: long
      Returns:
      WebIDL type: float
    • setU8At

      public static void setU8At(NativeObject base, int index, byte value)
      Parameters:
      base - WebIDL type: VoidPtr
      index - WebIDL type: long
      value - WebIDL type: octet
    • setU16At

      public static void setU16At(NativeObject base, int index, short value)
      Parameters:
      base - WebIDL type: VoidPtr
      index - WebIDL type: long
      value - WebIDL type: unsigned short
    • setU32At

      public static void setU32At(NativeObject base, int index, int value)
      Parameters:
      base - WebIDL type: VoidPtr
      index - WebIDL type: long
      value - WebIDL type: unsigned long
    • setRealAt

      public static void setRealAt(NativeObject base, int index, float value)
      Parameters:
      base - WebIDL type: VoidPtr
      index - WebIDL type: long
      value - WebIDL type: float
    • voidToU8Ptr

      public static PxU8Ptr voidToU8Ptr(NativeObject voidPtr)
      Parameters:
      voidPtr - WebIDL type: VoidPtr
      Returns:
      WebIDL type: PxU8Ptr [Value]
    • voidToU16Ptr

      public static PxU16Ptr voidToU16Ptr(NativeObject voidPtr)
      Parameters:
      voidPtr - WebIDL type: VoidPtr
      Returns:
      WebIDL type: PxU16Ptr [Value]
    • voidToU32Ptr

      public static PxU32Ptr voidToU32Ptr(NativeObject voidPtr)
      Parameters:
      voidPtr - WebIDL type: VoidPtr
      Returns:
      WebIDL type: PxU32Ptr [Value]
    • voidToRealPtr

      public static PxRealPtr voidToRealPtr(NativeObject voidPtr)
      Parameters:
      voidPtr - WebIDL type: VoidPtr
      Returns:
      WebIDL type: PxRealPtr [Value]
    • getActorAt

      public static PxActor getActorAt(PxActor base, int index)
      Parameters:
      base - WebIDL type: PxActor
      index - WebIDL type: long
      Returns:
      WebIDL type: PxActor
    • getBounds3At

      public static PxBounds3 getBounds3At(PxBounds3 base, int index)
      Parameters:
      base - WebIDL type: PxBounds3
      index - WebIDL type: long
      Returns:
      WebIDL type: PxBounds3
    • getContactPairAt

      public static PxContactPair getContactPairAt(PxContactPair base, int index)
      Parameters:
      base - WebIDL type: PxContactPair
      index - WebIDL type: long
      Returns:
      WebIDL type: PxContactPair
    • getContactPairHeaderAt

      public static PxContactPairHeader getContactPairHeaderAt(PxContactPairHeader base, int index)
      Parameters:
      base - WebIDL type: PxContactPairHeader
      index - WebIDL type: long
      Returns:
      WebIDL type: PxContactPairHeader
    • getControllerAt

      public static PxController getControllerAt(PxController base, int index)
      Parameters:
      base - WebIDL type: PxController
      index - WebIDL type: long
      Returns:
      WebIDL type: PxController
    • getControllerShapeHitAt

      public static PxControllerShapeHit getControllerShapeHitAt(PxControllerShapeHit base, int index)
      Parameters:
      base - WebIDL type: PxControllerShapeHit
      index - WebIDL type: long
      Returns:
      WebIDL type: PxControllerShapeHit
    • getControllersHitAt

      public static PxControllersHit getControllersHitAt(PxControllersHit base, int index)
      Parameters:
      base - WebIDL type: PxControllersHit
      index - WebIDL type: long
      Returns:
      WebIDL type: PxControllersHit
    • getControllerObstacleHitAt

      public static PxControllerObstacleHit getControllerObstacleHitAt(PxControllerObstacleHit base, int index)
      Parameters:
      base - WebIDL type: PxControllerObstacleHit
      index - WebIDL type: long
      Returns:
      WebIDL type: PxControllerObstacleHit
    • getDebugPointAt

      public static PxDebugPoint getDebugPointAt(PxDebugPoint base, int index)
      Parameters:
      base - WebIDL type: PxDebugPoint
      index - WebIDL type: long
      Returns:
      WebIDL type: PxDebugPoint
    • getDebugLineAt

      public static PxDebugLine getDebugLineAt(PxDebugLine base, int index)
      Parameters:
      base - WebIDL type: PxDebugLine
      index - WebIDL type: long
      Returns:
      WebIDL type: PxDebugLine
    • getDebugTriangleAt

      public static PxDebugTriangle getDebugTriangleAt(PxDebugTriangle base, int index)
      Parameters:
      base - WebIDL type: PxDebugTriangle
      index - WebIDL type: long
      Returns:
      WebIDL type: PxDebugTriangle
    • getObstacleAt

      public static PxObstacle getObstacleAt(PxObstacle base, int index)
      Parameters:
      base - WebIDL type: PxObstacle
      index - WebIDL type: long
      Returns:
      WebIDL type: PxObstacle
    • getShapeAt

      public static PxShape getShapeAt(PxShape base, int index)
      Parameters:
      base - WebIDL type: PxShape
      index - WebIDL type: long
      Returns:
      WebIDL type: PxShape
    • getTriggerPairAt

      public static PxTriggerPair getTriggerPairAt(PxTriggerPair base, int index)
      Parameters:
      base - WebIDL type: PxTriggerPair
      index - WebIDL type: long
      Returns:
      WebIDL type: PxTriggerPair
    • getVec3At

      public static PxVec3 getVec3At(PxVec3 base, int index)
      Parameters:
      base - WebIDL type: PxVec3
      index - WebIDL type: long
      Returns:
      WebIDL type: PxVec3