java.lang.Object
physx.NativeObject
physx.extensions.PxGjkQuery
Collection of GJK query functions (sweeps, raycasts, overlaps, ...).
-
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 PxGjkQueryarrayGet(long baseAddress, int index) voiddestroy()static booleanoverlap(Support a, Support b, PxTransform poseA, PxTransform poseB) static booleanproximityInfo(Support a, Support b, PxTransform poseA, PxTransform poseB, float contactDistance, float toleranceLength, PxGjkQueryProximityInfoResult result) static booleanraycast(Support shape, PxTransform pose, PxVec3 rayStart, PxVec3 unitDir, float maxDist, PxGjkQueryRaycastResult result) static booleansweep(Support a, Support b, PxTransform poseA, PxTransform poseB, PxVec3 unitDir, float maxDist, PxGjkQuerySweepResult result) static PxGjkQuerywrapPointer(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
-
PxGjkQuery
protected PxGjkQuery() -
PxGjkQuery
protected PxGjkQuery(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
proximityInfo
public static boolean proximityInfo(Support a, Support b, PxTransform poseA, PxTransform poseB, float contactDistance, float toleranceLength, PxGjkQueryProximityInfoResult result) - Parameters:
a- WebIDL type:Support[Const, Ref]b- WebIDL type:Support[Const, Ref]poseA- WebIDL type:PxTransform[Const, Ref]poseB- WebIDL type:PxTransform[Const, Ref]contactDistance- WebIDL type: floattoleranceLength- WebIDL type: floatresult- WebIDL type:PxGjkQueryProximityInfoResult[Ref]- Returns:
- WebIDL type: boolean
-
raycast
public static boolean raycast(Support shape, PxTransform pose, PxVec3 rayStart, PxVec3 unitDir, float maxDist, PxGjkQueryRaycastResult result) - Parameters:
shape- WebIDL type:Support[Const, Ref]pose- WebIDL type:PxTransform[Const, Ref]rayStart- WebIDL type:PxVec3[Const, Ref]unitDir- WebIDL type:PxVec3[Const, Ref]maxDist- WebIDL type: floatresult- WebIDL type:PxGjkQueryRaycastResult[Ref]- Returns:
- WebIDL type: boolean
-
overlap
- Parameters:
a- WebIDL type:Support[Const, Ref]b- WebIDL type:Support[Const, Ref]poseA- WebIDL type:PxTransform[Const, Ref]poseB- WebIDL type:PxTransform[Const, Ref]- Returns:
- WebIDL type: boolean
-
sweep
public static boolean sweep(Support a, Support b, PxTransform poseA, PxTransform poseB, PxVec3 unitDir, float maxDist, PxGjkQuerySweepResult result) - Parameters:
a- WebIDL type:Support[Const, Ref]b- WebIDL type:Support[Const, Ref]poseA- WebIDL type:PxTransform[Const, Ref]poseB- WebIDL type:PxTransform[Const, Ref]unitDir- WebIDL type:PxVec3[Const, Ref]maxDist- WebIDL type: floatresult- WebIDL type:PxGjkQuerySweepResult[Ref]- Returns:
- WebIDL type: boolean
-