Skip to main content

ShakeablePouringStrengthController

A class in Root.Township, Alta.Liquid.

Pouring strength controller where shaking the container adds to the pour from tipping.

Constructors​

MemberWhat it is
ShakeablePouringStrengthController()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private float maxPouringFromShakingMost pouring strength shaking can add.
private ShakeDetector shakeDetectorDetects how hard the container is shaken.

Methods​

MemberWhat it is
override float GetPouringStrength(out bool isFullyPouring)Tipping value plus the shake strength squared (capped by maxPouringFromShaking), times the multipliers.