java.lang.Object
physx.NativeObject
physx.extensions.Support
- Direct Known Subclasses:
BoxSupport,CapsuleSupport,ConvexGeomSupport,ConvexMeshSupport,CustomSupport,SphereSupport
Abstract interface for a user defined shape GJK mapping support.
A user defined shape consists of a core shape and a margin. If the distance
between two shapes' cores is equal to the sum of their margins, these shapes are
considered touching.
-
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 SupportarrayGet(long baseAddress, int index) voiddestroy()floatReturn the user defined shape margin.supportLocal(PxVec3 dir) Return the farthest point on the user defined shape's core in given direction.static SupportwrapPointer(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
-
Support
protected Support() -
Support
protected Support(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getMargin
public float getMargin()Return the user defined shape margin. Margin should be greater than or equal to 0- Returns:
- Margin.
-
supportLocal
Return the farthest point on the user defined shape's core in given direction.- Parameters:
dir- Direction- Returns:
- Farthest point in given direction.
-