com.bulletphysics.collision.shapes
Class SphereShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConvexShape
com.bulletphysics.collision.shapes.ConvexInternalShape
com.bulletphysics.collision.shapes.SphereShape
public class SphereShape
- extends ConvexInternalShape
SphereShape implements an implicit (getSupportingVertex) Sphere.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SphereShape
public SphereShape(float radius)
localGetSupportingVertexWithoutMargin
public javax.vecmath.Vector3f localGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f vec,
javax.vecmath.Vector3f out)
- Specified by:
localGetSupportingVertexWithoutMargin
in class ConvexShape
batchedUnitVectorGetSupportingVertexWithoutMargin
public void batchedUnitVectorGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f[] vectors,
javax.vecmath.Vector3f[] supportVerticesOut,
int numVectors)
- Specified by:
batchedUnitVectorGetSupportingVertexWithoutMargin
in class ConvexShape
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 ConvexInternalShape
getShapeType
public BroadphaseNativeType getShapeType()
- Specified by:
getShapeType
in class CollisionShape
calculateLocalInertia
public void calculateLocalInertia(float mass,
javax.vecmath.Vector3f inertia)
- Specified by:
calculateLocalInertia
in class CollisionShape
getName
public java.lang.String getName()
- Specified by:
getName
in class CollisionShape
getRadius
public float getRadius()
setMargin
public void setMargin(float margin)
- Overrides:
setMargin
in class ConvexInternalShape
getMargin
public float getMargin()
- Overrides:
getMargin
in class ConvexInternalShape