AccessibleDocks.DockSetup
A private class in Root.Township, Alta.Character. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
One body dock handled by AccessibleDocks: its normal position and the position it moves to in accessible mode, plus a number label that turns to face the centre.
Constructors
Fields
| Member | What it is |
|---|
Quaternion accessibleNumberRotation | Local rotation of the number label in accessible mode, facing the centre. |
Vector3 accessiblePosition | Local position of the dock in accessible mode. |
Transform dock | The dock transform that is moved. |
Transform number | The number label transform that is turned. |
Quaternion originalNumberRotation | The number label's normal local rotation. |
Vector3 originalPosition | The dock's normal local position. |
Methods
| Member | What it is |
|---|
void SetupNumber(Vector3 centerPosition) | Saves the dock's current position and number rotation as the originals, and aims the number at the given centre for accessible mode. |
void Update(bool isAccessible, float lerp, float rotationLerp) | Moves the dock and turns its number towards the target for the mode. With speeds given it steps towards them, without it snaps. |
void Update(bool isAccessible) | Moves the dock and turns its number towards the target for the mode. With speeds given it steps towards them, without it snaps. |
1 private and internal method
| Member | What it is |
|---|
private void GetTargetPosition(bool isAccessible, out Vector3 targetPosition, out Quaternion targetNumberRotation) | Picks the dock position and number rotation for accessible or normal mode. |
Used in
Members of other types that take, return or hold a DockSetup: