RotationBucket
A internal class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
One part that FaceObject turns to face the hands holding its handle pickups.
- Listed in Global namespace: Q to R
Constructors
| Member | What it is |
|---|---|
RotationBucket() | Creates a RotationBucket with default values. |
Fields
| Member | What it is |
|---|---|
float clampDegrees | In advanced mode, the most the part may turn away from its rest rotation. |
Pickup[] handlePickups | Pickups whose holders' hand positions are averaged to get the point to face. |
bool isUsingAdvanced | Uses the advanced mode, which works in local space and clamps the angle. |
Vector3 lastTo | Direction to the tracked point from the last update. |
float lerpSpeed | Smoothing speed when slerp is on. |
Transform rotatingObject | The transform that gets rotated. |
Vector3 rotationAxis | The axis the part turns around. |
bool slerp | Smooths the turn with a slerp at lerpSpeed. |
Vector3 trackingVector | Current average hand position the part turns towards. |
Used in
Members of other types that take, return or hold a RotationBucket: