com.bulletphysics.collision.shapes
Class ConeShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConvexShape
com.bulletphysics.collision.shapes.ConvexInternalShape
com.bulletphysics.collision.shapes.ConeShape
- Direct Known Subclasses:
- ConeShapeX, ConeShapeZ
public class ConeShape
- extends ConvexInternalShape
ConeShape implements a cone shape primitive, centered around the origin and
aligned with the Y axis. The ConeShapeX
is aligned around the X axis
and ConeShapeZ
around the Z axis.
Constructor Summary |
ConeShape(float radius,
float height)
|
ConeShape
public ConeShape(float radius,
float height)
getRadius
public float getRadius()
getHeight
public float getHeight()
localGetSupportingVertexWithoutMargin
public Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec,
Vector3f out)
- Specified by:
localGetSupportingVertexWithoutMargin
in class ConvexShape
batchedUnitVectorGetSupportingVertexWithoutMargin
public void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors,
Vector3f[] supportVerticesOut,
int numVectors)
- Specified by:
batchedUnitVectorGetSupportingVertexWithoutMargin
in class ConvexShape
localGetSupportingVertex
public Vector3f localGetSupportingVertex(Vector3f vec,
Vector3f out)
- Overrides:
localGetSupportingVertex
in class ConvexInternalShape
getShapeType
public BroadphaseNativeType getShapeType()
- Specified by:
getShapeType
in class CollisionShape
calculateLocalInertia
public void calculateLocalInertia(float mass,
Vector3f inertia)
- Specified by:
calculateLocalInertia
in class CollisionShape
getName
public String getName()
- Specified by:
getName
in class CollisionShape
getConeUpIndex
public int getConeUpIndex()