dynamic

Principle
brush
dynamic
image
mouse
vol
See also

Principle

Real time
Dynamic of objects
Dynamic of images

Real time

The real time order of actions in OpenGL main loop is:
       F1() function.
       Set force to nul.
       Trajectories processing.
       F2() function.
       Processing collision anc.
       Processing of dynamic limits.
       Processing dynamic (using forces, force rota, force rota add ...)
       Set force rota, force rota add to nul.
       Collisions detection (seting force rota add for the next dynamic processing).
       F3(), F4() functions.
       Limits processing.
       Display
       F5() function (force rota add may be modified).
       Swap and returns of the main loop.

Dynamic of objects

       The objects of anyflo and their vertices can be equipped with dynamic properties. yes dynamic and in interaction mode the mechanical laws shall be applied. These properties are:
des masses.
des forces.
des velocity.
des force torque.
des springs.
des vitesses.
des accelerations.
Limitations may be specified on these parameters:
       limit force.
       limit speed.
Geometric limitations can be specified:
       limit dist.

Dynamic of images

       Image id is a particular object whose description is a rectangular array of dimensions dim image(id) whose elements are vectors of dimension 4 (R,G,B,A). It is possible to assign kinematic properties:
       image speed.
       image acceleration.
As well as dynamic properties:
       dynamic image(id)=1 making it a dynamic object on the red, green and blue color.
       dynamic image(id)=2 making dynamic the transprency.
       mass image.
       spring image.
       etc..
Notes:
1) It is necessary to yes image for the dynamic images to be taken into account.
2) A dynamic brush can be associated with a dynamic image in order to make a dynamic palette, see an example in the PINCEAU_DYNA()function of file demo1_dynamic.func. A dynamic brush can be associated to an image

Pratically

1) Build objects.
2) Assign masses, possibly origin speeds.
3) You can define constraints (anc, attach, limit).
4) You can define:
Forceson volumes and/or on vertices.
Force torque.
Force (fields), (springs).
(Collisions).
5) then launch animation with interaction and yes dynamic.

dynamic

dynamic

        Returns the number of calculations of the dynamic step.

dynamic(n)

        Changes this number.
Notes:
1) n=2 by default.
2) The larger n is, the better the approximation, but longer calculations will.
3) Pratically dynamic(5) is a good choice.
4)Must be increased to quick movements or in case of collision detection error.

dynamic vol

dynamic vol(id)

Returns the property dynamic of volume id.

dynamic vol(id)=d

Changes this proêrty.
Note:
d=0: inhibites the dynamic for this volume. If volume id is type envelope with spring, allows execute the dynamic after the display.
d=1: activates the dynamic for this volume.

See also:

acc
audio
field
collision
exec dynamic
mass
dynamic network
no dynamic
spring
speed
yes dynamic