public class UniformScalingShape extends ConvexShape
ConvexShape
in a memory efficient way. Istead of using UniformScalingShape, it is better
to use the non-uniform setLocalScaling method on convex shapes that implement it.MAX_PREFERRED_PENETRATION_DIRECTIONS| Constructor and Description |
|---|
UniformScalingShape(ConvexShape convexChildShape,
float uniformScalingFactor) |
| 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) |
void |
getAabbSlow(Transform t,
Vector3f aabbMin,
Vector3f aabbMax) |
ConvexShape |
getChildShape() |
Vector3f |
getLocalScaling(Vector3f out) |
float |
getMargin() |
String |
getName() |
int |
getNumPreferredPenetrationDirections() |
void |
getPreferredPenetrationDirection(int index,
Vector3f penetrationVector) |
BroadphaseNativeType |
getShapeType() |
float |
getUniformScalingFactor() |
Vector3f |
localGetSupportingVertex(Vector3f vec,
Vector3f out) |
Vector3f |
localGetSupportingVertexWithoutMargin(Vector3f vec,
Vector3f out) |
void |
setLocalScaling(Vector3f scaling) |
void |
setMargin(float margin) |
calculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointerpublic UniformScalingShape(ConvexShape convexChildShape, float uniformScalingFactor)
public float getUniformScalingFactor()
public ConvexShape getChildShape()
public Vector3f localGetSupportingVertex(Vector3f vec, Vector3f out)
localGetSupportingVertex in class ConvexShapepublic Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec, Vector3f out)
localGetSupportingVertexWithoutMargin in class ConvexShapepublic void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors, Vector3f[] supportVerticesOut, int numVectors)
batchedUnitVectorGetSupportingVertexWithoutMargin in class ConvexShapepublic void getAabbSlow(Transform t, Vector3f aabbMin, Vector3f aabbMax)
getAabbSlow in class ConvexShapepublic void setLocalScaling(Vector3f scaling)
setLocalScaling in class ConvexShapepublic Vector3f getLocalScaling(Vector3f out)
getLocalScaling in class ConvexShapepublic void setMargin(float margin)
setMargin in class ConvexShapepublic float getMargin()
getMargin in class ConvexShapepublic int getNumPreferredPenetrationDirections()
getNumPreferredPenetrationDirections in class ConvexShapepublic void getPreferredPenetrationDirection(int index,
Vector3f penetrationVector)
getPreferredPenetrationDirection in class ConvexShapepublic void getAabb(Transform t, Vector3f aabbMin, Vector3f aabbMax)
getAabb in class CollisionShapepublic BroadphaseNativeType getShapeType()
getShapeType in class CollisionShapepublic void calculateLocalInertia(float mass,
Vector3f inertia)
calculateLocalInertia in class CollisionShapepublic String getName()
getName in class CollisionShape