public class SphereShape extends ConvexInternalShape
MAX_PREFERRED_PENETRATION_DIRECTIONS| Constructor and Description |
|---|
SphereShape(float radius) |
| Modifier and Type | Method and Description |
|---|---|
void |
batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors,
Vector3f[] supportVerticesOut,
int numVectors) |
void |
calculateLocalInertia(float mass,
Vector3f inertia) |
void |
getAabb(Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version.
|
float |
getMargin() |
String |
getName() |
float |
getRadius() |
BroadphaseNativeType |
getShapeType() |
Vector3f |
localGetSupportingVertexWithoutMargin(Vector3f vec,
Vector3f out) |
void |
setMargin(float margin) |
getAabbSlow, getLocalScaling, getNumPreferredPenetrationDirections, getPreferredPenetrationDirection, localGetSupportingVertex, setLocalScalingcalculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointerpublic Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec, Vector3f out)
localGetSupportingVertexWithoutMargin in class ConvexShapepublic void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors, Vector3f[] supportVerticesOut, int numVectors)
batchedUnitVectorGetSupportingVertexWithoutMargin in class ConvexShapepublic void getAabb(Transform t, Vector3f aabbMin, Vector3f aabbMax)
ConvexInternalShapegetAabb in class ConvexInternalShapepublic BroadphaseNativeType getShapeType()
getShapeType in class CollisionShapepublic void calculateLocalInertia(float mass,
Vector3f inertia)
calculateLocalInertia in class CollisionShapepublic String getName()
getName in class CollisionShapepublic float getRadius()
public void setMargin(float margin)
setMargin in class ConvexInternalShapepublic float getMargin()
getMargin in class ConvexInternalShape