The lean out expression rotates trees towards the nearest include spline boundary, to use it.
- Create a Forest object with Splines defining the Include areas. Randomise rotation as you would Normally
- Go to the Effects rollout and enter a value in Lean_Out_Amount. This will determine the angle of the lean effect
- To adjust the distance from the boundary's edge that the lean out effect influences, edit the Lean_Out_Distance parameter.
- Because the lean out rotation overwrites any randomised rotation use used in the transform rollout you can reintroduce to rotation variation using the RandomWiggle parameter.
You can find this Effect within the Forest Effects Library.
This Effect Uses:
Type: Scene Units
Vector to nearest include area edge.
Distance to nearest include area.
Position vector of individual fp Item.
Individual item's X rotation.
Individual item's Y rotation.
Returns the principal value of the arc tangent of y/x, expressed in radians
Converts degrees to radians.
Returns an ease-in interpolation between y1 and y2. Returns y1 when x < x1