realtlacitka.png (1143 bytes) Real3D Amiga Environment Real3D Amiga Tutorials Real3D Amiga Projects Real3D Amiga Macros Real3D Amiga Other Back to Real3D Amiga home page

6.14.3 Customized Radial Force

As we have already mentioned, it is possible to define a custom formula which defines the strength of force fields produced by particle methods.

In this example, we will create a particle "flock" which acts under the influence of such a customized force field.

1. Create a particle flock consisting of circles.

2. Create a RADIAL FORCE method to the same level with the circles and add the following tag to it:

                     SFOR f=100000*(s-2)

3. Create an offset under the RADIAL FORCE method so that the distance between the particles and the offset is greater than 2 m.

4. Create a PROCESSOR method to the same level with the RADIAL FORCE method.

5. Open the animation window and set the Resolution to 200 frames (this gives you more time to analyze what will happen).

realtut6.14.3_1.png (3006 bytes)
YouTube Customized Radial Force.

Play the animation. Because in the beginning, the distance between the particles and the force source is greater than 2.0, s-2 is positive and the method pulls particles towards it. As soon as the distance to any particle gets shorter than this value, the method starts to push it away.

For more information about all possible variables for RADIAL FORCE see the Reference section.

ghh don'tpanic