com.bulletphysics.collision.shapes
Class CylinderShape

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.PolyhedralConvexShape
                  extended by com.bulletphysics.collision.shapes.BoxShape
                      extended by com.bulletphysics.collision.shapes.CylinderShape
Direct Known Subclasses:
CylinderShapeX, CylinderShapeZ

public class CylinderShape
extends BoxShape

CylinderShape class implements a cylinder shape primitive, centered around the origin. Its central axis aligned with the Y axis. CylinderShapeX is aligned with the X axis and CylinderShapeZ around the Z axis.


Field Summary
 
Fields inherited from class com.bulletphysics.collision.shapes.ConvexShape
MAX_PREFERRED_PENETRATION_DIRECTIONS
 
Constructor Summary
CylinderShape(Vector3f halfExtents)
           
 
Method Summary
 void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors, Vector3f[] supportVerticesOut, int numVectors)
           
 void getAabb(Transform t, Vector3f aabbMin, Vector3f aabbMax)
          getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version.
 String getName()
           
 float getRadius()
           
 BroadphaseNativeType getShapeType()
           
 int getUpAxis()
           
 Vector3f localGetSupportingVertex(Vector3f vec, Vector3f out)
           
 Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec, Vector3f out)
           
 
Methods inherited from class com.bulletphysics.collision.shapes.BoxShape
calculateLocalInertia, getEdge, getHalfExtentsWithMargin, getHalfExtentsWithoutMargin, getNumEdges, getNumPlanes, getNumPreferredPenetrationDirections, getNumVertices, getPlane, getPlaneEquation, getPreferredPenetrationDirection, getVertex, isInside, setLocalScaling, setMargin
 
Methods inherited from class com.bulletphysics.collision.shapes.PolyhedralConvexShape
recalcLocalAabb
 
Methods inherited from class com.bulletphysics.collision.shapes.ConvexInternalShape
getAabbSlow, getLocalScaling, getMargin
 
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

CylinderShape

public CylinderShape(Vector3f halfExtents)
Method Detail

getAabb

public void getAabb(Transform t,
                    Vector3f aabbMin,
                    Vector3f aabbMax)
Description copied from class: ConvexInternalShape
getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version.

Overrides:
getAabb in class BoxShape

localGetSupportingVertexWithoutMargin

public Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec,
                                                      Vector3f out)
Overrides:
localGetSupportingVertexWithoutMargin in class BoxShape

batchedUnitVectorGetSupportingVertexWithoutMargin

public void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors,
                                                              Vector3f[] supportVerticesOut,
                                                              int numVectors)
Overrides:
batchedUnitVectorGetSupportingVertexWithoutMargin in class BoxShape

localGetSupportingVertex

public Vector3f localGetSupportingVertex(Vector3f vec,
                                         Vector3f out)
Overrides:
localGetSupportingVertex in class BoxShape

getShapeType

public BroadphaseNativeType getShapeType()
Overrides:
getShapeType in class BoxShape

getUpAxis

public int getUpAxis()

getRadius

public float getRadius()

getName

public String getName()
Overrides:
getName in class BoxShape