User Guide
356 APPENDIX E
• Any physical model involved in a constraint or action should have all of it’s constraints and actions included in
the same FastConstraintSolver.
• Faster processing may be achieved if unrelated constraints belong to different solvers, such as a hingeConstraint
for a door and a wheelConstraint for a vehicle.
• Constraints and Actions may also be removed or re-added to a Solver list following creation.
(Angular Dashpots and Actions are not constraints by defi nition, but need to be processed and included in a
FastConstraintSolver.)
Global Methods
FastConstraintSolver()
Creates and returns a new FastConstraintSolver.
solver = FastConstraintSolver();
Local Methods
createHingeConstraint(PhysicalModel, PhysicalModel)
Creates and returns a new HingeConstraint between the two PhysicalModels. This constraint imitates the
common concept of a hinge, such as is used on a door or lid.
solver = FastConstraintSolver();
constraint = solver.createHingeConstraint(a.physicalModel, b.physicalModel);
solver.addConstraint(constraint);
createPointToPointConstraint(PhysicalModel, PhysicalModel)
Creates and returns a new PointToPointConstraint between the two PhysicalModels.
solver = FastConstraintSolver();
constraint = solver.createPointToPointConstraint(a.physicalModel, b.physicalModel);
solver.addConstraint(constraint);
createPrismaticConstraint(PhysicalModel, PhysicalModel)
Creates and returns a new PrismaticConstraint between the two PhysicalModels. This constraint limits an object
to a single direction of movement, such as is used in a sliding door.
solver = FastConstraintSolver();
constraint = solver.createPrismaticConstraint(a.physicalModel, b.physicalModel);
solver.addConstraint(constraint);
createStiffSpringConstraint(PhysicalModel, PhysicalModel)
Creates and returns a new StiffSpringConstraint between the two PhysicalModels.
solver = FastConstraintSolver();
constraint = solver.createStiffSpringConstraint(a.physicalModel, b.physicalModel);
solver.addConstraint(constraint);










