Skip to main content

BoughtSkillVisualizer.PositionMachine

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

Private helper in BoughtSkillVisualizer that spaces a number of points evenly around a circle, facing the transform's forward axis.

Constructors​

MemberWhat it is
PositionMachine(Transform transform, int instancesCount, float radius)Creates a BoughtSkillVisualizer.PositionMachine from transform, instancesCount and radius.

Fields​

5 private and internal fields
MemberWhat it is
private readonly Vector3 currentPositionCentre of the circle (the transform's position when made).
private readonly Vector3 forwardAxisAxis the circle turns around.
private readonly int instancesCountNumber of points.
private readonly Vector3 startPositionOffset of the first point from the centre (radius along the flipped up axis).
private readonly float stepDegrees between points.

Methods​

MemberWhat it is
Vector3 GetPosition(int index)World position of the point at an index.
IEnumerable<Vector3> GetPositions() (iterator)All the points in order.