java.lang.Object
physx.NativeObject
physx.character.PxControllerFilterCallback
- Direct Known Subclasses:
PxControllerFilterCallbackImpl
Dedicated filtering callback for CCT vs CCT.
This controls collisions between CCTs (one CCT vs anoter CCT).
To make each CCT collide against all other CCTs, just return true - or simply avoid defining a callback. To make each CCT freely go through all other CCTs, just return false. Otherwise create a custom filtering logic in this callback.
- See Also:
-
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 PxControllerFilterCallbackarrayGet(long baseAddress, int index) voiddestroy()booleanfilter(PxController a, PxController b) Filtering method for CCT-vs-CCT.static PxControllerFilterCallbackwrapPointer(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
-
PxControllerFilterCallback
protected PxControllerFilterCallback() -
PxControllerFilterCallback
protected PxControllerFilterCallback(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
filter
Filtering method for CCT-vs-CCT.- Parameters:
a- First CCTb- Second CCT- Returns:
- true to keep the pair, false to filter it out
-