private float anglesPerSection | Degrees between snap points. Only set in OnDrawGizmos here. |
private Transform debugIcon | Inspector-assigned transform for debugging icons. Not used in this code. |
private int debugIndex | Inspector-assigned debug index. Not used in this code. |
private int dissapearingPointIndex | Index of the snap point opposite the selection. |
private float dissappearingAngle | Angle opposite the selection arrow. |
private int handleInteractors | How many hands hold the wheel's handles. |
private Interactable[] handles | Grab points that turn the wheel. |
private Rigidbody hinge | Rigidbody of the wheel that spins on its hinge. |
private Material iconMaterial | Material for the wheel icons. Not used in this code. |
private Transform iconParent | Parent for the wheel icons. Not used in this code. |
private float iconRadius | Distance of the snap points from the wheel centre, used by the gizmos. |
private float iconSize | Size of the wheel icons. Not used in this code. |
private float iconXOffset | Sideways offset of the snap point gizmos. |
private InGameInspector inspector | The InGameInspector this wheel belongs to. |
private bool isInitialized | FixedUpdate does nothing until this is true. Nothing in this code sets it, so the snapping never runs. |
private bool isPlayingSounds | Whether to play the wheel click when the selection changes. |
private bool isSnappingToPoints | Whether the wheel is pulled towards the nearest snap point. |
private float minAngleDifference | Within this many degrees of a point, and below minVelocity, the wheel stops. |
private float minVelocity | Angular speed under which the wheel may stop on a point. |
private int numberOfSnapPoints | How many points the wheel snaps to. |
private int[] points | Not used in this code. |
private AnimationCurve rotationEffect | Curve of snap pull strength against distance from the point, as a share of a section. |
private float rotationMultiplier | Scales the snap pull. |
private float selectionAngle | Current wheel angle under the selection arrow. |
private Transform selectionArrow | Fixed marker whose position on the wheel picks the selected point. |
private int selectionPointIndex | Index of the selected snap point. |