com.bulletphysics.collision.shapes
Class ConeShape

java.lang.Object
  extended by com.bulletphysics.collision.shapes.CollisionShape
      extended by com.bulletphysics.collision.shapes.ConvexShape
          extended by com.bulletphysics.collision.shapes.ConvexInternalShape
              extended by 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.


Field Summary
 
Fields inherited from class com.bulletphysics.collision.shapes.ConvexShape
MAX_PREFERRED_PENETRATION_DIRECTIONS
 
Constructor Summary
ConeShape(float radius, float height)
           
 
Method Summary
 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)
           
 
Methods inherited from class com.bulletphysics.collision.shapes.ConvexInternalShape
getAabb, getAabbSlow, getLocalScaling, getMargin, getNumPreferredPenetrationDirections, getPreferredPenetrationDirection, setLocalScaling, setMargin
 
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape
calculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConeShape

public ConeShape(float radius,
                 float height)
Method Detail

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()