Class PuddlecraftWind
- Namespace
- DFA.Puddlecraft
The wind Puddlecraft uses, read from the scene's directional Wind Zone. It tilts the rain, blows rain in under roofs and pushes waves across standing water. With no directional Wind Zone there is no wind.
Rotate the Wind Zone to change the direction. Its Main value sets the strength (1 or more is full strength), and its Pulse settings make it gust.
In a player, the Wind Zone is looked up when a scene loads, and again when the one in use is disabled or destroyed. A Wind Zone added at any other time is picked up at the next scene load.
public static class PuddlecraftWind
- Inheritance
-
PuddlecraftWind
Properties
direction
The unit vector, in world XZ, the wind blows towards.
public static Vector2 direction { get; }
Property Value
steadyStrength
Wind strength without gusts, 0 to 1: the Wind Zone's Main value.
public static float steadyStrength { get; }
Property Value
strength
Wind strength now, 0 to 1, including gusts.
public static float strength { get; }
Property Value
zone
The directional Wind Zone in use, or null.
public static WindZone zone { get; }