Repulsion computes the distance in 2 dimensions to a given object and applies a "repel" effect according to the distance and strength paramters. Next, the item is projected onto the surface in its new position using the fpSurfaceHitZ function. To use it:
- Use Object to pick an object from the scene that will repel forest items.
- Use the Distance parameter to set falloff limits of the repulsion effect.
- Use the Strength parameter to push scattered items away from the repulsion object.
- Use the Controller property to pick a track from the scene that is added to the distance parameter to control the falloff limits. For example if you are using a ball to repel Forest items you could use the Radius controller to automatically adjust the falloff distance as the ball is re-sized.
You can find this Effect within the Forest Effects Library.
This Effect Uses:
Type: Scene Units
Position of Forest Item in local coordinates
Index in the Geometry List, starting at zero
Returns an ease-out interpolation between y1 and y2. Returns y2 when x > x2.
Returns a unit vector in the same direction as v.
The length of v.
Computes the projection of p onto the Forest surface (XY mode only). Returns z value.