java.lang.Object
physx.NativeObject
physx.geometry.SimpleCustomGeometryCallbacks
physx.geometry.SimpleCustomGeometryCallbacksImpl
-
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
ConstructorsModifierConstructorDescriptionprotectedprotectedSimpleCustomGeometryCallbacksImpl(long address) -
Method Summary
Modifier and TypeMethodDescriptionarrayGet(long baseAddress, int index) voidcomputeMassPropertiesImpl(PxGeometry geometry, PxMassProperties massProperties) voiddestroy()booleangenerateContactsImpl(PxGeometry geom0, PxGeometry geom1, PxTransform pose0, PxTransform pose1, float contactDistance, float meshContactMargin, float toleranceLength, PxContactBuffer contactBuffer) getLocalBoundsImpl(PxGeometry geometry) booleanoverlapImpl(PxGeometry geom0, PxTransform pose0, PxGeometry geom1, PxTransform pose1) intraycastImpl(PxVec3 origin, PxVec3 unitDir, PxGeometry geom, PxTransform pose, float maxDist, PxHitFlags hitFlags, int maxHits, PxGeomRaycastHit rayHits, int stride) booleansweepImpl(PxVec3 unitDir, float maxDist, PxGeometry geom0, PxTransform pose0, PxGeometry geom1, PxTransform pose1, PxGeomSweepHit sweepHit, PxHitFlags hitFlags, float inflation) booleanusePersistentContactManifoldImpl(PxGeometry geometry) wrapPointer(long address) Methods inherited from class physx.geometry.SimpleCustomGeometryCallbacks
getPersistentContactManifold_outBreakingThreshold, setPersistentContactManifold_outBreakingThresholdMethods 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
-
SimpleCustomGeometryCallbacksImpl
protected SimpleCustomGeometryCallbacksImpl(long address) -
SimpleCustomGeometryCallbacksImpl
protected SimpleCustomGeometryCallbacksImpl()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy()- Overrides:
destroyin classSimpleCustomGeometryCallbacks
-
getLocalBoundsImpl
- Overrides:
getLocalBoundsImplin classSimpleCustomGeometryCallbacks- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]- Returns:
- WebIDL type:
PxBounds3
-
generateContactsImpl
public boolean generateContactsImpl(PxGeometry geom0, PxGeometry geom1, PxTransform pose0, PxTransform pose1, float contactDistance, float meshContactMargin, float toleranceLength, PxContactBuffer contactBuffer) - Overrides:
generateContactsImplin classSimpleCustomGeometryCallbacks- Parameters:
geom0- WebIDL type:PxGeometry[Const, Ref]geom1- WebIDL type:PxGeometry[Const, Ref]pose0- WebIDL type:PxTransform[Const, Ref]pose1- WebIDL type:PxTransform[Const, Ref]contactDistance- WebIDL type: floatmeshContactMargin- WebIDL type: floattoleranceLength- WebIDL type: floatcontactBuffer- WebIDL type:PxContactBuffer[Ref]- Returns:
- WebIDL type: boolean
-
raycastImpl
public int raycastImpl(PxVec3 origin, PxVec3 unitDir, PxGeometry geom, PxTransform pose, float maxDist, PxHitFlags hitFlags, int maxHits, PxGeomRaycastHit rayHits, int stride) - Overrides:
raycastImplin classSimpleCustomGeometryCallbacks- Parameters:
origin- WebIDL type:PxVec3[Const, Ref]unitDir- WebIDL type:PxVec3[Const, Ref]geom- WebIDL type:PxGeometry[Const, Ref]pose- WebIDL type:PxTransform[Const, Ref]maxDist- WebIDL type: floathitFlags- WebIDL type:PxHitFlags[Ref]maxHits- WebIDL type: unsigned longrayHits- WebIDL type:PxGeomRaycastHitstride- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned long
-
overlapImpl
public boolean overlapImpl(PxGeometry geom0, PxTransform pose0, PxGeometry geom1, PxTransform pose1) - Overrides:
overlapImplin classSimpleCustomGeometryCallbacks- Parameters:
geom0- WebIDL type:PxGeometry[Const, Ref]pose0- WebIDL type:PxTransform[Const, Ref]geom1- WebIDL type:PxGeometry[Const, Ref]pose1- WebIDL type:PxTransform[Const, Ref]- Returns:
- WebIDL type: boolean
-
sweepImpl
public boolean sweepImpl(PxVec3 unitDir, float maxDist, PxGeometry geom0, PxTransform pose0, PxGeometry geom1, PxTransform pose1, PxGeomSweepHit sweepHit, PxHitFlags hitFlags, float inflation) - Overrides:
sweepImplin classSimpleCustomGeometryCallbacks- Parameters:
unitDir- WebIDL type:PxVec3[Const, Ref]maxDist- WebIDL type: floatgeom0- WebIDL type:PxGeometry[Const, Ref]pose0- WebIDL type:PxTransform[Const, Ref]geom1- WebIDL type:PxGeometry[Const, Ref]pose1- WebIDL type:PxTransform[Const, Ref]sweepHit- WebIDL type:PxGeomSweepHit[Ref]hitFlags- WebIDL type:PxHitFlags[Ref]inflation- WebIDL type: float- Returns:
- WebIDL type: boolean
-
computeMassPropertiesImpl
- Overrides:
computeMassPropertiesImplin classSimpleCustomGeometryCallbacks- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]massProperties- WebIDL type:PxMassProperties[Ref]
-
usePersistentContactManifoldImpl
- Overrides:
usePersistentContactManifoldImplin classSimpleCustomGeometryCallbacks- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]- Returns:
- WebIDL type: boolean
-