com.bulletphysics.dynamics.constraintsolver
Class TypedConstraint

java.lang.Object
  extended by com.bulletphysics.dynamics.constraintsolver.TypedConstraint
Direct Known Subclasses:
ConeTwistConstraint, Generic6DofConstraint, HingeConstraint, Point2PointConstraint, RaycastVehicle, SliderConstraint

public abstract class TypedConstraint
extends Object

TypedConstraint is the base class for Bullet constraints and vehicles.


Constructor Summary
TypedConstraint(TypedConstraintType type)
           
TypedConstraint(TypedConstraintType type, RigidBody rbA)
           
TypedConstraint(TypedConstraintType type, RigidBody rbA, RigidBody rbB)
           
 
Method Summary
abstract  void buildJacobian()
           
 float getAppliedImpulse()
           
 TypedConstraintType getConstraintType()
           
 RigidBody getRigidBodyA()
           
 RigidBody getRigidBodyB()
           
 int getUid()
           
 int getUserConstraintId()
           
 int getUserConstraintType()
           
 void setUserConstraintId(int userConstraintId)
           
 void setUserConstraintType(int userConstraintType)
           
abstract  void solveConstraint(float timeStep)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypedConstraint

public TypedConstraint(TypedConstraintType type)

TypedConstraint

public TypedConstraint(TypedConstraintType type,
                       RigidBody rbA)

TypedConstraint

public TypedConstraint(TypedConstraintType type,
                       RigidBody rbA,
                       RigidBody rbB)
Method Detail

buildJacobian

public abstract void buildJacobian()

solveConstraint

public abstract void solveConstraint(float timeStep)

getRigidBodyA

public RigidBody getRigidBodyA()

getRigidBodyB

public RigidBody getRigidBodyB()

getUserConstraintType

public int getUserConstraintType()

setUserConstraintType

public void setUserConstraintType(int userConstraintType)

getUserConstraintId

public int getUserConstraintId()

getUid

public int getUid()

setUserConstraintId

public void setUserConstraintId(int userConstraintId)

getAppliedImpulse

public float getAppliedImpulse()

getConstraintType

public TypedConstraintType getConstraintType()