public abstract class ConvexShape extends CollisionShape
localGetSupportingVertex
interface
used in combination with GJK or ConvexCast.Modifier and Type | Field and Description |
---|---|
static int |
MAX_PREFERRED_PENETRATION_DIRECTIONS |
userPointer
Constructor and Description |
---|
ConvexShape() |
Modifier and Type | Method and Description |
---|---|
abstract void |
batchedUnitVectorGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f[] vectors,
javax.vecmath.Vector3f[] supportVerticesOut,
int numVectors) |
abstract void |
getAabbSlow(Transform t,
javax.vecmath.Vector3f aabbMin,
javax.vecmath.Vector3f aabbMax) |
abstract javax.vecmath.Vector3f |
getLocalScaling(javax.vecmath.Vector3f out) |
abstract float |
getMargin() |
abstract int |
getNumPreferredPenetrationDirections() |
abstract void |
getPreferredPenetrationDirection(int index,
javax.vecmath.Vector3f penetrationVector) |
abstract javax.vecmath.Vector3f |
localGetSupportingVertex(javax.vecmath.Vector3f vec,
javax.vecmath.Vector3f out) |
abstract javax.vecmath.Vector3f |
localGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f vec,
javax.vecmath.Vector3f out) |
abstract void |
setLocalScaling(javax.vecmath.Vector3f scaling) |
abstract void |
setMargin(float margin) |
calculateLocalInertia, calculateTemporalAabb, getAabb, getAngularMotionDisc, getBoundingSphere, getName, getShapeType, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer
public static final int MAX_PREFERRED_PENETRATION_DIRECTIONS
public abstract javax.vecmath.Vector3f localGetSupportingVertex(javax.vecmath.Vector3f vec, javax.vecmath.Vector3f out)
public abstract javax.vecmath.Vector3f localGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f vec, javax.vecmath.Vector3f out)
public abstract void batchedUnitVectorGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f[] vectors, javax.vecmath.Vector3f[] supportVerticesOut, int numVectors)
public abstract void getAabbSlow(Transform t, javax.vecmath.Vector3f aabbMin, javax.vecmath.Vector3f aabbMax)
public abstract void setLocalScaling(javax.vecmath.Vector3f scaling)
setLocalScaling
in class CollisionShape
public abstract javax.vecmath.Vector3f getLocalScaling(javax.vecmath.Vector3f out)
getLocalScaling
in class CollisionShape
public abstract void setMargin(float margin)
setMargin
in class CollisionShape
public abstract float getMargin()
getMargin
in class CollisionShape
public abstract int getNumPreferredPenetrationDirections()
public abstract void getPreferredPenetrationDirection(int index, javax.vecmath.Vector3f penetrationVector)
Copyright © 2013. All Rights Reserved.