User Guide

ADOBE ATMOSPHERE 361
User Guide
It should be noted that for any of the physics based constraints or actions, it is necessary to assign reasonable mass
values when creating the physical models so that physics processing does not become unstable (driven out of scope).
The guidelines for mass and inertia are decribed in the method createPhysicalModel().
Local Properties
angularVelocityDrag
The strength of the drag as it applies to object angular velocity (rotation).
dragAction.angularVelocityDrag = 1;
velocityDrag
The strength of the drag as it applies to object velocity.
dragAction.velocityDrag = 1;
Code Sample
solverA = FastConstraintSolver();
velocityDrag = 1;
angularVelocityDrag = 1;
dragAction = solverA.createDragAction( velocityDrag, angularVelocityDrag );
solverA.addAction(dragAction);
FluidAction
A Fluid Action causes dynamic physical models in the world to behave as though the world were fi lled with a fl uid.
The effect is more signifi cant than a Drag Action, and similarly applied to both the direction and rotation of objects.
A Fluid Action is created by a method of the FastConstraintSolver(), and has a global scalar property for damping.
It should be noted that for any of the physics based constraints or actions, it is necessary to assign reasonable mass
values when creating the physical models so that physics processing does not become unstable (driven out of scope).
The guidelines for mass and inertia are decribed in the method createPhysicalModel().
Local Properties
damping
A property representing the effective viscosity of the fl uid (water ~ 1).
Code Sample
solverA = FastConstraintSolver();
uidAction = solverA.createFluidAction();
uidAction.damping = 1;