com.bulletphysics.collision.shapes
Class StaticPlaneShape

java.lang.Object
  extended by com.bulletphysics.collision.shapes.CollisionShape
      extended by com.bulletphysics.collision.shapes.ConcaveShape
          extended by com.bulletphysics.collision.shapes.StaticPlaneShape

public class StaticPlaneShape
extends ConcaveShape

StaticPlaneShape simulates an infinite non-moving (static) collision plane.


Constructor Summary
StaticPlaneShape(Vector3f planeNormal, float planeConstant)
           
 
Method Summary
 void calculateLocalInertia(float mass, Vector3f inertia)
           
 void getAabb(Transform t, Vector3f aabbMin, Vector3f aabbMax)
           
 Vector3f getLocalScaling(Vector3f out)
           
 String getName()
           
 float getPlaneConstant()
           
 Vector3f getPlaneNormal(Vector3f out)
           
 BroadphaseNativeType getShapeType()
           
 void processAllTriangles(TriangleCallback callback, Vector3f aabbMin, Vector3f aabbMax)
           
 void setLocalScaling(Vector3f scaling)
           
 
Methods inherited from class com.bulletphysics.collision.shapes.ConcaveShape
getMargin, setMargin
 
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape
calculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticPlaneShape

public StaticPlaneShape(Vector3f planeNormal,
                        float planeConstant)
Method Detail

getPlaneNormal

public Vector3f getPlaneNormal(Vector3f out)

getPlaneConstant

public float getPlaneConstant()

processAllTriangles

public void processAllTriangles(TriangleCallback callback,
                                Vector3f aabbMin,
                                Vector3f aabbMax)
Specified by:
processAllTriangles in class ConcaveShape

getAabb

public void getAabb(Transform t,
                    Vector3f aabbMin,
                    Vector3f aabbMax)
Specified by:
getAabb in class CollisionShape

getShapeType

public BroadphaseNativeType getShapeType()
Specified by:
getShapeType in class CollisionShape

setLocalScaling

public void setLocalScaling(Vector3f scaling)
Specified by:
setLocalScaling in class CollisionShape

getLocalScaling

public Vector3f getLocalScaling(Vector3f out)
Specified by:
getLocalScaling in class CollisionShape

calculateLocalInertia

public void calculateLocalInertia(float mass,
                                  Vector3f inertia)
Specified by:
calculateLocalInertia in class CollisionShape

getName

public String getName()
Specified by:
getName in class CollisionShape