Skip to main content

StabilizeJointContainer

A class in Root.Township, Alta.Inventory.

StabilizePickupJoint for jointed containers (bags): also scales a held visual and hides the storage visual while docked.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private CurveScaler heldScalerVisual scaled on while the container is held.
private CurveScaler storageStorage visual hidden while docked.

Methods​

MemberWhat it is
protected override void Docked(Interactor interactor, Pickup pickup, PickupDock dock)Shrinks and hides the storage visual, then runs the base dock handling.
protected override void StartHandlingToPositionChanges(Interactable interactable, Interactor interactor)Scales up the held visual, then starts the base handling.
protected override void StopHandlingToPositionChanges(Interactable interactable, Interactor interactor)Scales down the held visual unless docked, then stops the base handling.
protected override void Undocked(Interactor interactor, Pickup pickup, PickupDock dock)Shows the storage visual again, then runs the base undock handling.