com.bulletphysics.collision.shapes
Class StaticPlaneShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConcaveShape
com.bulletphysics.collision.shapes.StaticPlaneShape
public class StaticPlaneShape
- extends ConcaveShape
StaticPlaneShape simulates an 'infinite' plane by dynamically reporting triangles approximated by intersection of the plane with the AABB.
Assumed is that the other objects is not also infinite, so a reasonable sized AABB.
Constructor Summary |
StaticPlaneShape(javax.vecmath.Vector3f planeNormal,
float planeConstant)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localAabbMin
protected final javax.vecmath.Vector3f localAabbMin
localAabbMax
protected final javax.vecmath.Vector3f localAabbMax
planeNormal
protected final javax.vecmath.Vector3f planeNormal
planeConstant
protected float planeConstant
localScaling
protected final javax.vecmath.Vector3f localScaling
StaticPlaneShape
public StaticPlaneShape(javax.vecmath.Vector3f planeNormal,
float planeConstant)
getPlaneNormal
public javax.vecmath.Vector3f getPlaneNormal(javax.vecmath.Vector3f out)
getPlaneConstant
public float getPlaneConstant()
processAllTriangles
public void processAllTriangles(TriangleCallback callback,
javax.vecmath.Vector3f aabbMin,
javax.vecmath.Vector3f aabbMax)
- Specified by:
processAllTriangles
in class ConcaveShape
getAabb
public void getAabb(Transform t,
javax.vecmath.Vector3f aabbMin,
javax.vecmath.Vector3f aabbMax)
- Specified by:
getAabb
in class CollisionShape
getShapeType
public BroadphaseNativeType getShapeType()
- Specified by:
getShapeType
in class CollisionShape
setLocalScaling
public void setLocalScaling(javax.vecmath.Vector3f scaling)
- Specified by:
setLocalScaling
in class CollisionShape
getLocalScaling
public javax.vecmath.Vector3f getLocalScaling(javax.vecmath.Vector3f out)
- Specified by:
getLocalScaling
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