public class Convex2dShape extends ConvexShape
btConvex2dShape. For a rectangle, use Box2dShape instead.| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger2
message logger for this class
|
loggerXenableContactFilter, logger, margin, scaleloggerN| Constructor and Description |
|---|
Convex2dShape(ConvexShape base)
Instantiate a shape based on the specified convex shape.
|
Convex2dShape(java.nio.FloatBuffer flippedBuffer)
Instantiate a 2-D hull shape based on a flipped buffer containing
coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canScale(Vector3f scale)
Test whether the specified scale factors can be applied to this shape.
|
ConvexShape |
getBaseShape()
Access the base shape.
|
void |
setScale(Vector3f scale)
Alter the scale of this shape and its base.
|
isConcave, isConvex, scaledVolume, toHullShape, toSplittableShapeaabbCenter, boundingBox, boundingBox, canSplit, getDefaultMargin, getMargin, getScale, getScaleDp, getShapeType, getShapeType, isContactFilterEnabled, isInfinite, isNonMoving, isPolyhedral, maxRadius, nativeMargin, recalculateAabb, setContactFilterEnabled, setDefaultMargin, setMargin, setNativeId, 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 Convex2dShape(ConvexShape base)
base - the base shape (not null, convex, alias created)public Convex2dShape(java.nio.FloatBuffer flippedBuffer)
flippedBuffer - the coordinates on which to base the shape (not
null, not empty, length a multiple of 3, Z=0, unaffected)public ConvexShape getBaseShape()
public boolean canScale(Vector3f scale)
canScale in class CollisionShapescale - the desired scale factor for each local axis (may be null,
unaffected)public void setScale(Vector3f scale)
Note that if shapes are shared (between collision objects and/or compound shapes) changes can have unintended consequences.
setScale in class CollisionShapescale - the desired scale factor for each local axis (not null, no
negative component, unaffected, default=(1,1,1))