User Guide
ADOBE ATMOSPHERE 357
User Guide
createWheelConstraint(PhysicalModel, PhysicalModel)
Creates and returns a new WheelConstraint between the two PhysicalModels. The fi rst PhysicalModel is the
chassis, the second is the wheel.
solver = FastConstraintSolver();
constraint = solver.createWheelConstraint(frame.physicalModel, wheel.physicalModel);
solver.addConstraint(constraint);
addConstraint(constraint)
Adds the constraint to the Solver for calculation.
solver.addConstraint(constraint);
removeConstraint(constraint)
Removes the constraint from the Solver.
solver.removeConstraint(constraint);
createBreakableConstraint(Constraint, linearStrength, angularStrength)
Creates a “BreakableConstraint” which is added to an existing constraint. This unique type of constraint acts
as an arbitrator that determines if a given constraint should remain active. Values for “angularStrength” and
“linearStrength” specify the forces beyond which the constraint will be abandoned, and the physical models will
“break apart”.
solver = FastConstraintSolver();
constraint = solver.createWheelConstraint(frame.physicalModel, wheel.physicalModel);
solver.addConstraint(constraint);
breakableConstraint = solver.createBreakableConstraint(constraint, 50, 50);
solver.addConstraint(breakableConstraint);
createAngularDashpot(PhysicalModel, PhysicalModel)
Creates and returns a new AngularDashpot between the two PhysicalModels.
solver = FastConstraintSolver();
angularDashpot = solver.createAngularDashpot(a.physicalModel, b.physicalModel);
addAngularDashpot(AngularDashpot)
Adds the AngularDashpot to the solver for calculation.
solver = FastConstraintSolver();
angularDashpot = solver.createAngularDashpot(a.physicalModel, b.physicalModel);
solver.addAngularDashpot(angularDashpot);
removeAngularDashpot(AngularDashpot)
Removes the AngularDashpot from the solver.
solver = FastConstraintSolver();
angularDashpot = solver.createAngularDashpot(a.physicalModel, b.physicalModel);
solver.addAngularDashpot(angularDashpot);
solver.removeAngularDashpot(angularDashpot);










