Skip to main content

LiquidTest

A class in Root.Township, the global namespace.

Test component that tilts a liquid transform back toward world up each frame, within a limit. Probably a leftover prototype.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private Transform liquidTransformTransform of the liquid surface being levelled.
private float rotationLimitLargest correction in degrees.
private float rotationMultiplierHow much of the tilt is corrected.

Methods​

1 private and internal method
MemberWhat it is
private void LateUpdate()Rotates liquidTransform toward world up by its tilt times rotationMultiplier, capped at rotationLimit degrees.