public class BoxShape extends PolyhedralConvexShape
CollisionObject or RigidBody it will be an oriented box in world space.MAX_PREFERRED_PENETRATION_DIRECTIONSrecalcLocalAabbgetAabbSlow, getLocalScaling, getMargincalculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointerpublic BoxShape(Vector3f boxHalfExtents)
public BroadphaseNativeType getShapeType()
getShapeType in class CollisionShapepublic Vector3f localGetSupportingVertex(Vector3f vec, Vector3f out)
localGetSupportingVertex in class ConvexInternalShapepublic Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec, Vector3f out)
localGetSupportingVertexWithoutMargin in class PolyhedralConvexShapepublic void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors, Vector3f[] supportVerticesOut, int numVectors)
batchedUnitVectorGetSupportingVertexWithoutMargin in class PolyhedralConvexShapepublic void setMargin(float margin)
setMargin in class ConvexInternalShapepublic void setLocalScaling(Vector3f scaling)
setLocalScaling in class PolyhedralConvexShapepublic void getAabb(Transform t, Vector3f aabbMin, Vector3f aabbMax)
ConvexInternalShapegetAabb in class PolyhedralConvexShapepublic void calculateLocalInertia(float mass,
Vector3f inertia)
calculateLocalInertia in class PolyhedralConvexShapepublic void getPlane(Vector3f planeNormal, Vector3f planeSupport, int i)
getPlane in class PolyhedralConvexShapepublic int getNumPlanes()
getNumPlanes in class PolyhedralConvexShapepublic int getNumVertices()
getNumVertices in class PolyhedralConvexShapepublic int getNumEdges()
getNumEdges in class PolyhedralConvexShapepublic void getVertex(int i,
Vector3f vtx)
getVertex in class PolyhedralConvexShapepublic void getPlaneEquation(Vector4f plane, int i)
public void getEdge(int i,
Vector3f pa,
Vector3f pb)
getEdge in class PolyhedralConvexShapepublic boolean isInside(Vector3f pt, float tolerance)
isInside in class PolyhedralConvexShapepublic String getName()
getName in class CollisionShapepublic int getNumPreferredPenetrationDirections()
getNumPreferredPenetrationDirections in class ConvexInternalShapepublic void getPreferredPenetrationDirection(int index,
Vector3f penetrationVector)
getPreferredPenetrationDirection in class ConvexInternalShape