public abstract class ConvexShape extends CollisionShape
btConvexShape.
Subclasses include BoxCollisionShape and
CapsuleCollisionShape.
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
loggerX
message logger for this class
|
enableContactFilter, logger, margin, scaleloggerN| Modifier | Constructor and Description |
|---|---|
protected |
ConvexShape()
Instantiate a collision shape with no tracker and no assigned native
object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isConcave()
Test whether this shape has concave type.
|
boolean |
isConvex()
Test whether this shape has convex type.
|
float |
scaledVolume()
Estimate the volume of this shape, including scale and margin.
|
HullCollisionShape |
toHullShape()
Approximate this shape with a HullCollisionShape.
|
CollisionShape |
toSplittableShape()
Approximate this shape with a splittable shape.
|
aabbCenter, 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 loggerX
protected ConvexShape()
This no-arg constructor was made explicit to avoid javadoc warnings from JDK 18+.
public HullCollisionShape toHullShape()
public boolean isConcave()
isConcave in class CollisionShapepublic boolean isConvex()
isConvex in class CollisionShapepublic float scaledVolume()
scaledVolume in class CollisionShapepublic CollisionShape toSplittableShape()
toSplittableShape in class CollisionShape