Skip to main content

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.

Constructors​

MemberWhat it is
RotationBucket()Creates a RotationBucket with default values.

Fields​

MemberWhat it is
float clampDegreesIn advanced mode, the most the part may turn away from its rest rotation.
Pickup[] handlePickupsPickups whose holders' hand positions are averaged to get the point to face.
bool isUsingAdvancedUses the advanced mode, which works in local space and clamps the angle.
Vector3 lastToDirection to the tracked point from the last update.
float lerpSpeedSmoothing speed when slerp is on.
Transform rotatingObjectThe transform that gets rotated.
Vector3 rotationAxisThe axis the part turns around.
bool slerpSmooths the turn with a slerp at lerpSpeed.
Vector3 trackingVectorCurrent average hand position the part turns towards.

Used in​

Members of other types that take, return or hold a RotationBucket: