java.lang.Object
physx.NativeObject
physx.physics.PxShapeExt
-
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 PxShapeExtarrayGet(long baseAddress, int index) voiddestroy()static PxTransformgetGlobalPose(PxShape shape, PxRigidActor actor) static PxBounds3getWorldBounds(PxShape shape, PxRigidActor actor) static PxBounds3getWorldBounds(PxShape shape, PxRigidActor actor, float inflation) static booleanoverlap(PxShape shape, PxRigidActor actor, PxGeometry otherGeom, PxTransform otherGeomPose) static intraycast(PxShape shape, PxRigidActor actor, PxVec3 rayOrigin, PxVec3 rayDir, float maxDist, PxHitFlags hitFlags, int maxHits, PxRaycastHit rayHits) static booleansweep(PxShape shape, PxRigidActor actor, PxVec3 unitDir, float distance, PxGeometry otherGeom, PxTransform otherGeomPose, PxSweepHit sweepHit, PxHitFlags hitFlags) static PxShapeExtwrapPointer(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
-
PxShapeExt
protected PxShapeExt() -
PxShapeExt
protected PxShapeExt(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getGlobalPose
- Parameters:
shape- WebIDL type:PxShape[Const, Ref]actor- WebIDL type:PxRigidActor[Const, Ref]- Returns:
- WebIDL type:
PxTransform[Value]
-
raycast
public static int raycast(PxShape shape, PxRigidActor actor, PxVec3 rayOrigin, PxVec3 rayDir, float maxDist, PxHitFlags hitFlags, int maxHits, PxRaycastHit rayHits) - Parameters:
shape- WebIDL type:PxShape[Const, Ref]actor- WebIDL type:PxRigidActor[Const, Ref]rayOrigin- WebIDL type:PxVec3[Const, Ref]rayDir- WebIDL type:PxVec3[Const, Ref]maxDist- WebIDL type: floathitFlags- WebIDL type:PxHitFlags[Ref]maxHits- WebIDL type: unsigned longrayHits- WebIDL type:PxRaycastHit- Returns:
- WebIDL type: unsigned long
-
overlap
public static boolean overlap(PxShape shape, PxRigidActor actor, PxGeometry otherGeom, PxTransform otherGeomPose) - Parameters:
shape- WebIDL type:PxShape[Const, Ref]actor- WebIDL type:PxRigidActor[Const, Ref]otherGeom- WebIDL type:PxGeometry[Const, Ref]otherGeomPose- WebIDL type:PxTransform[Const, Ref]- Returns:
- WebIDL type: boolean
-
sweep
public static boolean sweep(PxShape shape, PxRigidActor actor, PxVec3 unitDir, float distance, PxGeometry otherGeom, PxTransform otherGeomPose, PxSweepHit sweepHit, PxHitFlags hitFlags) - Parameters:
shape- WebIDL type:PxShape[Const, Ref]actor- WebIDL type:PxRigidActor[Const, Ref]unitDir- WebIDL type:PxVec3[Const, Ref]distance- WebIDL type: floatotherGeom- WebIDL type:PxGeometry[Const, Ref]otherGeomPose- WebIDL type:PxTransform[Const, Ref]sweepHit- WebIDL type:PxSweepHit[Ref]hitFlags- WebIDL type:PxHitFlags[Ref]- Returns:
- WebIDL type: boolean
-
getWorldBounds
- Parameters:
shape- WebIDL type:PxShape[Const, Ref]actor- WebIDL type:PxRigidActor[Const, Ref]- Returns:
- WebIDL type:
PxBounds3[Value]
-
getWorldBounds
- Parameters:
shape- WebIDL type:PxShape[Const, Ref]actor- WebIDL type:PxRigidActor[Const, Ref]inflation- WebIDL type: float- Returns:
- WebIDL type:
PxBounds3[Value]
-