public class ConeShape extends ConvexInternalShape
ConeShapeX is aligned around the X axis
and ConeShapeZ around the Z axis.MAX_PREFERRED_PENETRATION_DIRECTIONS| Constructor and Description |
|---|
ConeShape(float radius,
float height) |
| Modifier and Type | Method and Description |
|---|---|
void |
batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors,
Vector3f[] supportVerticesOut,
int numVectors) |
void |
calculateLocalInertia(float mass,
Vector3f inertia) |
int |
getConeUpIndex() |
float |
getHeight() |
String |
getName() |
float |
getRadius() |
BroadphaseNativeType |
getShapeType() |
Vector3f |
localGetSupportingVertex(Vector3f vec,
Vector3f out) |
Vector3f |
localGetSupportingVertexWithoutMargin(Vector3f vec,
Vector3f out) |
getAabb, getAabbSlow, getLocalScaling, getMargin, getNumPreferredPenetrationDirections, getPreferredPenetrationDirection, setLocalScaling, setMargincalculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointerpublic float getRadius()
public float getHeight()
public Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec, Vector3f out)
localGetSupportingVertexWithoutMargin in class ConvexShapepublic void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors, Vector3f[] supportVerticesOut, int numVectors)
batchedUnitVectorGetSupportingVertexWithoutMargin in class ConvexShapepublic Vector3f localGetSupportingVertex(Vector3f vec, Vector3f out)
localGetSupportingVertex in class ConvexInternalShapepublic BroadphaseNativeType getShapeType()
getShapeType in class CollisionShapepublic void calculateLocalInertia(float mass,
Vector3f inertia)
calculateLocalInertia in class CollisionShapepublic String getName()
getName in class CollisionShapepublic int getConeUpIndex()