Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Most of RealFlow's force-based daemons provide a falloff function for controlling how the force should vanish.

Creating a Rigid Body Setup

Let's create a basic falloff scenario with a simple rigid body dynamics scene. Here is the setup – the nodes can be added from the appropriate shelves:

  • The ground node is a → passive rigid body.
  • Add a cube and keep it selected,
  • Open Tools shelf > Array Tool, enter a value of 15 for the horizontal “Number of Items” parameters, and click on “OK”.


After a few moments you will see a → MultiBody consisting of 225 cubes:

  • Delete the original cube.
  • Rescale the MultiBody with the R key and make it an → active rigid body.
  • Change the MultiBody's' mass under Node Params > Rigid body > @ density > 200
  • A → “Gravity” daemon ties the cubes to the ground.

 

The → “Attractor” daemon is placed in the scene's centre and uses the falloff – all parameters are located under “Node Params”:

  • Attractor > Bounded > Yes
  • Rescale the daemon's viewport gizmo with the R key and include all cubes.
  • Attractor > Internal force > -200.0
  • Make the force field visible under Display Force Field > Show field > Yes
  • All you can see is a green mess
  • Change this with Display Force Field > @ spacing > 0.005

 

All arrows have exactly the same length, because the force is acting with the same strength at each point.

Activating the Falloff

Enable the daemon's falloff – all parameters located under Node Params > Force Field Falloff:

  • Enable falloff > Yes
  • @ Display falloff > Yes
  • @ falloff bounds > Sphere

 

Now, the arrows have different lengths and you can see two spheres:

  • Inside the dashed sphere, the arrows are now affected.
  • This means that here, the daemon's forces are acting with the adjusted “Internal strength” value.
  • Towards the outer sphere the arrows become smaller and smaller, indicating the falloff.

 

When you simulate you will recognize that the inner cubes are stronger affected than their counterparts near the daemon's boundary – this is the falloff's influence:

  • Change the MultiBody's “@ density” if necessary.
  • Play with “@ falloff percent” to change the size of the falloff zone.
  • Set the “@ falloff decay type” to “Quadratic” and “Cubic” and simulate again to see the difference.
  • The arrows show you immediately how the forces change with different settings.
  • Simulate.
  • No labels