com.bulletphysics.dynamics.constraintsolver
Class ConstraintSolver

java.lang.Object
  extended by com.bulletphysics.dynamics.constraintsolver.ConstraintSolver
Direct Known Subclasses:
SequentialImpulseConstraintSolver

public abstract class ConstraintSolver
extends Object

Abstract class for constraint solvers.


Constructor Summary
ConstraintSolver()
           
 
Method Summary
 void allSolved(ContactSolverInfo info, IDebugDraw debugDrawer)
           
 void prepareSolve(int numBodies, int numManifolds)
           
abstract  void reset()
          Clear internal cached data and reset random seed.
abstract  float solveGroup(ObjectArrayList<CollisionObject> bodies, int numBodies, ObjectArrayList<PersistentManifold> manifold, int manifold_offset, int numManifolds, ObjectArrayList<TypedConstraint> constraints, int constraints_offset, int numConstraints, ContactSolverInfo info, IDebugDraw debugDrawer, Dispatcher dispatcher)
          Solve a group of constraints.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintSolver

public ConstraintSolver()
Method Detail

prepareSolve

public void prepareSolve(int numBodies,
                         int numManifolds)

solveGroup

public abstract float solveGroup(ObjectArrayList<CollisionObject> bodies,
                                 int numBodies,
                                 ObjectArrayList<PersistentManifold> manifold,
                                 int manifold_offset,
                                 int numManifolds,
                                 ObjectArrayList<TypedConstraint> constraints,
                                 int constraints_offset,
                                 int numConstraints,
                                 ContactSolverInfo info,
                                 IDebugDraw debugDrawer,
                                 Dispatcher dispatcher)
Solve a group of constraints.


allSolved

public void allSolved(ContactSolverInfo info,
                      IDebugDraw debugDrawer)

reset

public abstract void reset()
Clear internal cached data and reset random seed.