Skip to main content

NetworkStarer.RotatingJoint

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Private: one joint in a NetworkStarer chain that turns to look at a target, with its own angle limit.

Constructors​

MemberWhat it is
RotatingJoint()Creates a NetworkStarer.RotatingJoint with default values.

Fields​

3 private and internal fields
MemberWhat it is
private bool isInitializedWhether Initialize has run.
private Transform jointBacking field for Joint.
private float maxAngleBacking field for MaxAngle (default 20).

Properties​

MemberWhat it is
Transform Joint { get; }The transform that rotates.
float MaxAngle { get; }Most this joint turns; the rest is passed to the next joint.
Quaternion OriginalRotation { get; private set; }Local rotation when initialized.

Methods​

MemberWhat it is
float GetAngle(Vector3 direction)Angle between the joint's starting rotation and facing the given direction.
void Initialize()Stores the joint's starting local rotation, once.

Used in​

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