ShakeablePouringStrengthController
A class in Root.Township, Alta.Liquid.
Pouring strength controller where shaking the container adds to the pour from tipping.
Constructors
| Member | What it is |
|---|
ShakeablePouringStrengthController() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private float maxPouringFromShaking | Most pouring strength shaking can add. |
private ShakeDetector shakeDetector | Detects how hard the container is shaken. |
Methods
| Member | What it is |
|---|
override float GetPouringStrength(out bool isFullyPouring) | Tipping value plus the shake strength squared (capped by maxPouringFromShaking), times the multipliers. |