private void Setup() { _Track = target as CircularTrack; _Transform = IsReady ? _Track.gameObject.transform : null; _TrackAngle = IsReady ? _Track.TrackAngle : 0; _Radius = IsReady ? _Track.Radius : 0f; }
public static Vector3 GetZeroInputPoint(CircularTrack track) { if (track._FullRange) { return(track.Radius * (track.TrackOrientation * Vector3.right)); } else { return(track.Radius * (track.TrackOrientation * Vector3.forward)); } }