public class MinkowskiSum extends ConvexShape
btMinkowskiSumShape.| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger2
message logger for this class
|
loggerXenableContactFilter, logger, margin, scaleloggerN| Constructor and Description |
|---|
MinkowskiSum(ConvexShape shapeA,
ConvexShape shapeB)
Instantiate the Minkowki sum of the specified shapes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canScale(Vector3f scale)
Test whether the specified scale factors can be applied to this shape.
|
float |
getMargin()
Return the collision margin of this shape.
|
ConvexShape |
getShapeA()
Access the first base shape.
|
ConvexShape |
getShapeB()
Access the 2nd base shape.
|
void |
setMargin(float margin)
Alter the collision margin of this shape.
|
isConcave, isConvex, scaledVolume, toHullShape, toSplittableShapeaabbCenter, boundingBox, boundingBox, canSplit, getDefaultMargin, getScale, getScaleDp, getShapeType, getShapeType, isContactFilterEnabled, isInfinite, isNonMoving, isPolyhedral, maxRadius, nativeMargin, recalculateAabb, setContactFilterEnabled, setDefaultMargin, 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 logger2
public MinkowskiSum(ConvexShape shapeA, ConvexShape shapeB)
shapeA - the first base shape (not null, convex, alias created)shapeB - the 2nd base shape (not null, convex, alias created)public ConvexShape getShapeA()
public ConvexShape getShapeB()
public boolean canScale(Vector3f scale)
canScale in class CollisionShapescale - the desired scale factor for each local axis (may be null,
unaffected)public float getMargin()
getMargin in class CollisionShapepublic void setMargin(float margin)
setMargin in class CollisionShapemargin - the desired margin thickness (in physics-space units)