public class Box2dShape extends ConvexShape
btBox2dShape.| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger2
message logger for this class
|
loggerXenableContactFilter, logger, margin, scaleloggerN| Constructor and Description |
|---|
Box2dShape(float halfExtent)
Instantiate a square shape with the specified half extent.
|
Box2dShape(float xHalfExtent,
float yHalfExtent)
Instantiate a rectangle shape with the specified half extents.
|
Box2dShape(Vector3f halfExtents)
Instantiate a rectangle shape with the specified half extents.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
getHalfExtents(Vector3f storeResult)
Copy the half extents of the rectangle.
|
float |
maxRadius()
Calculate how far the scaled shape extends from its center.
|
isConcave, isConvex, scaledVolume, toHullShape, toSplittableShapeaabbCenter, boundingBox, boundingBox, canScale, canSplit, getDefaultMargin, getMargin, getScale, getScaleDp, getShapeType, getShapeType, isContactFilterEnabled, isInfinite, isNonMoving, isPolyhedral, 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 logger2
public Box2dShape(float halfExtent)
halfExtent - the desired unscaled half extent on each local axis
(not negative)public Box2dShape(float xHalfExtent,
float yHalfExtent)
xHalfExtent - the desired unscaled half extent on the local X axis
(not negative)yHalfExtent - the desired unscaled half extent on the local Y axis
(not negative)public Box2dShape(Vector3f halfExtents)
halfExtents - the desired unscaled half extents (not null, no
negative component, unaffected, Z component ignored)public Vector3f getHalfExtents(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public float maxRadius()
maxRadius in class CollisionShape