com.bulletphysics.collision.narrowphase
Class ManifoldPoint

java.lang.Object
  extended by com.bulletphysics.collision.narrowphase.ManifoldPoint

public class ManifoldPoint
extends Object

ManifoldPoint collects and maintains persistent contactpoints. Used to improve stability and performance of rigidbody dynamics response.


Field Summary
 float appliedImpulse
           
 float appliedImpulseLateral1
           
 float appliedImpulseLateral2
           
 float combinedFriction
           
 float combinedRestitution
           
 float distance1
           
 int index0
           
 int index1
           
 Vector3f lateralFrictionDir1
           
 Vector3f lateralFrictionDir2
           
 boolean lateralFrictionInitialized
           
 int lifeTime
           
 Vector3f localPointA
           
 Vector3f localPointB
           
 Vector3f normalWorldOnB
           
 int partId0
           
 int partId1
           
 Vector3f positionWorldOnA
           
 Vector3f positionWorldOnB
           
 Object userPersistentData
           
 
Constructor Summary
ManifoldPoint()
           
ManifoldPoint(Vector3f pointA, Vector3f pointB, Vector3f normal, float distance)
           
 
Method Summary
 float getDistance()
           
 int getLifeTime()
           
 Vector3f getPositionWorldOnA(Vector3f out)
           
 Vector3f getPositionWorldOnB(Vector3f out)
           
 void init(Vector3f pointA, Vector3f pointB, Vector3f normal, float distance)
           
 void set(ManifoldPoint p)
           
 void setDistance(float dist)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localPointA

public final Vector3f localPointA

localPointB

public final Vector3f localPointB

positionWorldOnB

public final Vector3f positionWorldOnB

positionWorldOnA

public final Vector3f positionWorldOnA

normalWorldOnB

public final Vector3f normalWorldOnB

distance1

public float distance1

combinedFriction

public float combinedFriction

combinedRestitution

public float combinedRestitution

partId0

public int partId0

partId1

public int partId1

index0

public int index0

index1

public int index1

userPersistentData

public Object userPersistentData

appliedImpulse

public float appliedImpulse

lateralFrictionInitialized

public boolean lateralFrictionInitialized

appliedImpulseLateral1

public float appliedImpulseLateral1

appliedImpulseLateral2

public float appliedImpulseLateral2

lifeTime

public int lifeTime

lateralFrictionDir1

public final Vector3f lateralFrictionDir1

lateralFrictionDir2

public final Vector3f lateralFrictionDir2
Constructor Detail

ManifoldPoint

public ManifoldPoint()

ManifoldPoint

public ManifoldPoint(Vector3f pointA,
                     Vector3f pointB,
                     Vector3f normal,
                     float distance)
Method Detail

init

public void init(Vector3f pointA,
                 Vector3f pointB,
                 Vector3f normal,
                 float distance)

getDistance

public float getDistance()

getLifeTime

public int getLifeTime()

set

public void set(ManifoldPoint p)

getPositionWorldOnA

public Vector3f getPositionWorldOnA(Vector3f out)

getPositionWorldOnB

public Vector3f getPositionWorldOnB(Vector3f out)

setDistance

public void setDistance(float dist)