Package com.jme3.bullet.collision.shapes
Class PlaneCollisionShape
java.lang.Object
com.jme3.bullet.NativePhysicsObject
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.PlaneCollisionShape
- All Implemented Interfaces:
Comparable<NativePhysicsObject>
A planar collision shape based on Bullet's
btStaticPlaneShape
. Not
for use in dynamic bodies. Collisions between
HeightfieldCollisionShape
, MeshCollisionShape
, and
PlaneCollisionShape
objects are never detected. Similarly, collisions
between GImpactCollisionShape
objects and PlaneCollisionShape
objects are never detected.-
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
ConstructorDescriptionPlaneCollisionShape
(Plane plane) Instantiate a plane shape defined by the specified plane. -
Method Summary
Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShape
aabbCenter, boundingBox, boundingBox, canScale, canSplit, getDefaultMargin, getMargin, getScale, getScaleDp, getShapeType, getShapeType, isConcave, isContactFilterEnabled, isConvex, isInfinite, isNonMoving, isPolyhedral, nativeMargin, recalculateAabb, scaledVolume, 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
-
PlaneCollisionShape
Instantiate a plane shape defined by the specified plane.- Parameters:
plane
- the desired plane (not null, unaffected)
-
-
Method Details
-
getPlane
Copy the defining plane.- Returns:
- a new instance (not null)
-
maxRadius
public float maxRadius()Calculate how far the shape extends.- Overrides:
maxRadius
in classCollisionShape
- Returns:
- positive infinity
-