Package com.jme3.bullet.collision.shapes
Class EmptyShape
java.lang.Object
com.jme3.bullet.NativePhysicsObject
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.EmptyShape
- All Implemented Interfaces:
Comparable<NativePhysicsObject>
An empty collision shape based on Bullet's
btEmptyShape.-
Field Summary
FieldsFields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
enableContactFilter, logger, margin, scaleFields inherited from class com.jme3.bullet.NativePhysicsObject
loggerN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSplit()Test whether the shape can be split by an arbitrary plane.floatCalculate how far the shape extends from its center.floatReturn the volume of the shape, including scale and margin.floatReturn the volume of the shape.Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShape
aabbCenter, boundingBox, boundingBox, canScale, getDefaultMargin, getMargin, getScale, getScaleDp, getShapeType, getShapeType, isConcave, isContactFilterEnabled, isConvex, isInfinite, isNonMoving, isPolyhedral, nativeMargin, recalculateAabb, setContactFilterEnabled, setDefaultMargin, setMargin, setNativeId, setScale, setScale, setUserIndex, setUserIndex2, toSplittableShape, toString, updateScale, userIndex, userIndex2Methods inherited from class com.jme3.bullet.NativePhysicsObject
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeIdNotTracked, unassignNativeObject
-
Field Details
-
logger2
message logger for this class
-
-
Constructor Details
-
EmptyShape
public EmptyShape(boolean unused) Instantiate an empty shape.- Parameters:
unused- for compatibility with Minie
-
-
Method Details
-
unscaledVolume
public float unscaledVolume()Return the volume of the shape.- Returns:
- 0
-
canSplit
public boolean canSplit()Test whether the shape can be split by an arbitrary plane.- Overrides:
canSplitin classCollisionShape- Returns:
- true
-
maxRadius
public float maxRadius()Calculate how far the shape extends from its center.- Overrides:
maxRadiusin classCollisionShape- Returns:
- 0
-
scaledVolume
public float scaledVolume()Return the volume of the shape, including scale and margin.- Overrides:
scaledVolumein classCollisionShape- Returns:
- 0
-