com.bulletphysics.dynamics.constraintsolver
Class TypedConstraint
java.lang.Object
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.
TypedConstraint
public TypedConstraint(TypedConstraintType type)
TypedConstraint
public TypedConstraint(TypedConstraintType type,
RigidBody rbA)
TypedConstraint
public TypedConstraint(TypedConstraintType type,
RigidBody rbA,
RigidBody rbB)
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()