com.bulletphysics.collision.shapes
Class CylinderShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConvexShape
com.bulletphysics.collision.shapes.ConvexInternalShape
com.bulletphysics.collision.shapes.PolyhedralConvexShape
com.bulletphysics.collision.shapes.BoxShape
com.bulletphysics.collision.shapes.CylinderShape
- Direct Known Subclasses:
- CylinderShapeX, CylinderShapeZ
public class CylinderShape
- extends BoxShape
Implements cylinder shape interface.
Field Summary |
protected int |
upAxis
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
upAxis
protected int upAxis
CylinderShape
public CylinderShape(javax.vecmath.Vector3f halfExtents)
CylinderShape
protected CylinderShape(javax.vecmath.Vector3f halfExtents,
boolean unused)
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