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
Fields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
enableContactFilter, logger, margin, scale
Fields inherited from class com.jme3.bullet.NativePhysicsObject
loggerN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSplit()
Test whether the shape can be split by an arbitrary plane.float
Calculate how far the shape extends from its center.float
Return the volume of the shape, including scale and margin.float
Return 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, userIndex2
Methods 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:
canSplit
in classCollisionShape
- Returns:
- true
-
maxRadius
public float maxRadius()Calculate how far the shape extends from its center.- Overrides:
maxRadius
in classCollisionShape
- Returns:
- 0
-
scaledVolume
public float scaledVolume()Return the volume of the shape, including scale and margin.- Overrides:
scaledVolume
in classCollisionShape
- Returns:
- 0
-