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

Implements cylinder shape interface.


Field Summary
protected  int upAxis
           
 
Fields inherited from class com.bulletphysics.collision.shapes.PolyhedralConvexShape
isLocalAabbValid, localAabbMax, localAabbMin
 
Fields inherited from class com.bulletphysics.collision.shapes.ConvexInternalShape
collisionMargin, implicitShapeDimensions, localScaling
 
Fields inherited from class com.bulletphysics.collision.shapes.ConvexShape
MAX_PREFERRED_PENETRATION_DIRECTIONS
 
Constructor Summary
  CylinderShape(javax.vecmath.Vector3f halfExtents)
           
protected CylinderShape(javax.vecmath.Vector3f halfExtents, boolean unused)
           
 
Method Summary
 void batchedUnitVectorGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f[] vectors, javax.vecmath.Vector3f[] supportVerticesOut, int numVectors)
           
protected  javax.vecmath.Vector3f cylinderLocalSupportX(javax.vecmath.Vector3f halfExtents, javax.vecmath.Vector3f v, javax.vecmath.Vector3f out)
           
protected  javax.vecmath.Vector3f cylinderLocalSupportY(javax.vecmath.Vector3f halfExtents, javax.vecmath.Vector3f v, javax.vecmath.Vector3f out)
           
protected  javax.vecmath.Vector3f cylinderLocalSupportZ(javax.vecmath.Vector3f halfExtents, javax.vecmath.Vector3f v, javax.vecmath.Vector3f out)
           
 void getAabb(Transform t, javax.vecmath.Vector3f aabbMin, javax.vecmath.Vector3f aabbMax)
          getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version.
 java.lang.String getName()
           
 float getRadius()
           
 BroadphaseNativeType getShapeType()
           
 int getUpAxis()
           
 javax.vecmath.Vector3f localGetSupportingVertex(javax.vecmath.Vector3f vec, javax.vecmath.Vector3f out)
           
 javax.vecmath.Vector3f localGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f vec, javax.vecmath.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
_PolyhedralConvexShape_getAabb, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

upAxis

protected int upAxis
Constructor Detail

CylinderShape

public CylinderShape(javax.vecmath.Vector3f halfExtents)

CylinderShape

protected CylinderShape(javax.vecmath.Vector3f halfExtents,
                        boolean unused)
Method Detail

getAabb

public void getAabb(Transform t,
                    javax.vecmath.Vector3f aabbMin,
                    javax.vecmath.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

cylinderLocalSupportX

protected javax.vecmath.Vector3f cylinderLocalSupportX(javax.vecmath.Vector3f halfExtents,
                                                       javax.vecmath.Vector3f v,
                                                       javax.vecmath.Vector3f out)

cylinderLocalSupportY

protected javax.vecmath.Vector3f cylinderLocalSupportY(javax.vecmath.Vector3f halfExtents,
                                                       javax.vecmath.Vector3f v,
                                                       javax.vecmath.Vector3f out)

cylinderLocalSupportZ

protected javax.vecmath.Vector3f cylinderLocalSupportZ(javax.vecmath.Vector3f halfExtents,
                                                       javax.vecmath.Vector3f v,
                                                       javax.vecmath.Vector3f out)

localGetSupportingVertexWithoutMargin

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

batchedUnitVectorGetSupportingVertexWithoutMargin

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

localGetSupportingVertex

public javax.vecmath.Vector3f localGetSupportingVertex(javax.vecmath.Vector3f vec,
                                                       javax.vecmath.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 java.lang.String getName()
Overrides:
getName in class BoxShape