java.lang.Object
physx.NativeObject
physx.support.NativeArrayHelpers
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeArrayHelpersarrayGet(long baseAddress, int index) voiddestroy()static PxActorgetActorAt(PxActor base, int index) static PxBounds3getBounds3At(PxBounds3 base, int index) static PxContactPairgetContactPairAt(PxContactPair base, int index) static PxContactPairHeadergetContactPairHeaderAt(PxContactPairHeader base, int index) static PxControllergetControllerAt(PxController base, int index) static PxControllerObstacleHitgetControllerObstacleHitAt(PxControllerObstacleHit base, int index) static PxControllerShapeHitgetControllerShapeHitAt(PxControllerShapeHit base, int index) static PxControllersHitgetControllersHitAt(PxControllersHit base, int index) static PxDebugLinegetDebugLineAt(PxDebugLine base, int index) static PxDebugPointgetDebugPointAt(PxDebugPoint base, int index) static PxDebugTrianglegetDebugTriangleAt(PxDebugTriangle base, int index) static PxObstaclegetObstacleAt(PxObstacle base, int index) static floatstatic PxShapegetShapeAt(PxShape base, int index) static PxTriggerPairgetTriggerPairAt(PxTriggerPair base, int index) static shortgetU16At(PxU16ConstPtr base, int index) static intgetU32At(PxU32ConstPtr base, int index) static bytegetU8At(PxU8ConstPtr base, int index) static PxVec3static voidsetRealAt(NativeObject base, int index, float value) static voidsetU16At(NativeObject base, int index, short value) static voidsetU32At(NativeObject base, int index, int value) static voidsetU8At(NativeObject base, int index, byte value) static PxRealPtrvoidToRealPtr(NativeObject voidPtr) static PxU16PtrvoidToU16Ptr(NativeObject voidPtr) static PxU32PtrvoidToU32Ptr(NativeObject voidPtr) static PxU8PtrvoidToU8Ptr(NativeObject voidPtr) static NativeArrayHelperswrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
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
-
arrayGet
-
destroy
public void destroy() -
getU8At
- Parameters:
base- WebIDL type:PxU8ConstPtr[Ref]index- WebIDL type: long- Returns:
- WebIDL type: octet
-
getU16At
- Parameters:
base- WebIDL type:PxU16ConstPtr[Ref]index- WebIDL type: long- Returns:
- WebIDL type: unsigned short
-
getU32At
- Parameters:
base- WebIDL type:PxU32ConstPtr[Ref]index- WebIDL type: long- Returns:
- WebIDL type: unsigned long
-
getRealAt
- Parameters:
base- WebIDL type:PxRealPtr[Ref]index- WebIDL type: long- Returns:
- WebIDL type: float
-
setU8At
- Parameters:
base- WebIDL type: VoidPtrindex- WebIDL type: longvalue- WebIDL type: octet
-
setU16At
- Parameters:
base- WebIDL type: VoidPtrindex- WebIDL type: longvalue- WebIDL type: unsigned short
-
setU32At
- Parameters:
base- WebIDL type: VoidPtrindex- WebIDL type: longvalue- WebIDL type: unsigned long
-
setRealAt
- Parameters:
base- WebIDL type: VoidPtrindex- WebIDL type: longvalue- WebIDL type: float
-
voidToU8Ptr
- Parameters:
voidPtr- WebIDL type: VoidPtr- Returns:
- WebIDL type:
PxU8Ptr[Value]
-
voidToU16Ptr
- Parameters:
voidPtr- WebIDL type: VoidPtr- Returns:
- WebIDL type:
PxU16Ptr[Value]
-
voidToU32Ptr
- Parameters:
voidPtr- WebIDL type: VoidPtr- Returns:
- WebIDL type:
PxU32Ptr[Value]
-
voidToRealPtr
- Parameters:
voidPtr- WebIDL type: VoidPtr- Returns:
- WebIDL type:
PxRealPtr[Value]
-
getActorAt
-
getBounds3At
-
getContactPairAt
- Parameters:
base- WebIDL type:PxContactPairindex- WebIDL type: long- Returns:
- WebIDL type:
PxContactPair
-
getContactPairHeaderAt
- Parameters:
base- WebIDL type:PxContactPairHeaderindex- WebIDL type: long- Returns:
- WebIDL type:
PxContactPairHeader
-
getControllerAt
- Parameters:
base- WebIDL type:PxControllerindex- WebIDL type: long- Returns:
- WebIDL type:
PxController
-
getControllerShapeHitAt
- Parameters:
base- WebIDL type:PxControllerShapeHitindex- WebIDL type: long- Returns:
- WebIDL type:
PxControllerShapeHit
-
getControllersHitAt
- Parameters:
base- WebIDL type:PxControllersHitindex- WebIDL type: long- Returns:
- WebIDL type:
PxControllersHit
-
getControllerObstacleHitAt
public static PxControllerObstacleHit getControllerObstacleHitAt(PxControllerObstacleHit base, int index) - Parameters:
base- WebIDL type:PxControllerObstacleHitindex- WebIDL type: long- Returns:
- WebIDL type:
PxControllerObstacleHit
-
getDebugPointAt
- Parameters:
base- WebIDL type:PxDebugPointindex- WebIDL type: long- Returns:
- WebIDL type:
PxDebugPoint
-
getDebugLineAt
- Parameters:
base- WebIDL type:PxDebugLineindex- WebIDL type: long- Returns:
- WebIDL type:
PxDebugLine
-
getDebugTriangleAt
- Parameters:
base- WebIDL type:PxDebugTriangleindex- WebIDL type: long- Returns:
- WebIDL type:
PxDebugTriangle
-
getObstacleAt
- Parameters:
base- WebIDL type:PxObstacleindex- WebIDL type: long- Returns:
- WebIDL type:
PxObstacle
-
getShapeAt
-
getTriggerPairAt
- Parameters:
base- WebIDL type:PxTriggerPairindex- WebIDL type: long- Returns:
- WebIDL type:
PxTriggerPair
-
getVec3At
-