public abstract class CustomConvexShape extends ConvexShape
btConvexInternalShape.| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
loggerY
message logger for this class
|
protected static java.lang.ThreadLocal<Vector3f> |
threadTmpVector
temporary storage for one vector per thread
|
loggerXenableContactFilter, logger, margin, scaleloggerN| Modifier | Constructor and Description |
|---|---|
protected |
CustomConvexShape(float xHalfExtent,
float yHalfExtent,
float zHalfExtent)
Instantiate a custom collision shape with the specified extents.
|
protected |
CustomConvexShape(Vector3f halfExtents)
Instantiate a custom collision shape with the specified extents.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Vector3f |
locateSupport(float dirX,
float dirY,
float dirZ)
Locate the shape's supporting vertex for the specified normal direction,
excluding collision margin.
|
protected void |
setScaledInertia(float ix,
float iy,
float iz)
Alter the scaled rotational inertia.
|
isConcave, isConvex, scaledVolume, toHullShape, toSplittableShapeaabbCenter, boundingBox, boundingBox, canScale, canSplit, getDefaultMargin, getMargin, getScale, getScaleDp, getShapeType, getShapeType, isContactFilterEnabled, isInfinite, isNonMoving, isPolyhedral, maxRadius, nativeMargin, recalculateAabb, setContactFilterEnabled, setDefaultMargin, setMargin, setNativeId, setScale, setScale, setUserIndex, setUserIndex2, toString, updateScale, userIndex, userIndex2compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeIdNotTracked, unassignNativeObjectpublic static final java.util.logging.Logger loggerY
protected static final java.lang.ThreadLocal<Vector3f> threadTmpVector
protected CustomConvexShape(float xHalfExtent,
float yHalfExtent,
float zHalfExtent)
setScaledInertia().xHalfExtent - the desired half extent on the local X axis, for
scale=(1,1,1) and margin=0 (>0)yHalfExtent - the desired half extent on the local Y axis, for
scale=(1,1,1) and margin=0 (>0)zHalfExtent - the desired half extent on the local Z axis, for
scale=(1,1,1) and margin=0 (>0)protected CustomConvexShape(Vector3f halfExtents)
setScaledInertia().halfExtents - the desired half extents on each local axis, for
scale=(1,1,1) and margin=0 (all components >0, unaffected), or
null to calculate AABBs using the supporting verticesprotected abstract Vector3f locateSupport(float dirX, float dirY, float dirZ)
This method is invoked by native code.
dirX - the X-coordinate of the direction to test (in scaled shape
coordinates)dirY - the Y-coordinate of the direction to test (in scaled shape
coordinates)dirZ - the Z-coordinate of the direction to test (in scaled shape
coordinates)protected void setScaledInertia(float ix,
float iy,
float iz)
ix - the desired X-axis rotational inertia for mass=1 (>0)iy - the desired Y-axis rotational inertia for mass=1 (>0)iz - the desired Z-axis rotational inertia for mass=1 (>0)