Adobe ATMOSPHERE User Manual page 368

Table of Contents

Advertisement

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
constraint
solver.addConstraint(constraint);
createPointToPointConstraint(PhysicalModel, PhysicalModel)
Creates and returns a new PointToPointConstraint between the two PhysicalModels.
solver
constraint
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
constraint
solver.addConstraint(constraint);
createStiffSpringConstraint(PhysicalModel, PhysicalModel)
Creates and returns a new StiffSpringConstraint between the two PhysicalModels.
solver
constraint
solver.addConstraint(constraint);
= FastConstraintSolver();
= solver.createHingeConstraint(a.physicalModel, b.physicalModel);
= FastConstraintSolver();
= solver.createPointToPointConstraint(a.physicalModel, b.physicalModel);
= FastConstraintSolver();
= solver.createPrismaticConstraint(a.physicalModel, b.physicalModel);
= FastConstraintSolver();
= solver.createStiffSpringConstraint(a.physicalModel, b.physicalModel);

Advertisement

Table of Contents
loading

Table of Contents