com.bulletphysics.dynamics.constraintsolver
Class ConstraintSolver
java.lang.Object
com.bulletphysics.dynamics.constraintsolver.ConstraintSolver
- Direct Known Subclasses:
- SequentialImpulseConstraintSolver
public abstract class ConstraintSolver
- extends Object
Abstract class for constraint solvers.
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. |
ConstraintSolver
public ConstraintSolver()
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.