private readonly int _Progress | Shader id of the _Progress property, used to show charge progress. |
private readonly int _TintColor | Shader id of the _TintColor property, used for valid or invalid colour. |
private float arcGravity | Gravity used to bend the arc (default 9.8), scaled by player size. |
private Material baseMaterial | Material the teleporter arc and target are copied from. |
private Material baseMaterialAndroid | Android version of baseMaterial. Not read in this build. |
private float baseRotationLerp | Base lerp for turning the target to the new surface normal. |
private LayerMask blockageMask | Layers that stop the arc without being standable. |
private Vector2 climbingOffset | Offset for climb teleports. Not read in this class. |
private Color currentValidColor | Valid arc colour in use, changed by hunger level. |
private float distanceRotationLerp | Extra rotation lerp per unit the target moved this frame. |
private float fadedAlpha | Arc alpha at full fade. |
private float fadeEndAngle | Aim pitch at which the arc is fully faded and no longer traced (default 60). |
private float fadeStartAngle | Aim pitch at which the arc starts to fade (default 45). |
private HungerStat hungerDefinition | Hunger stat whose level picks the arc colour. |
private Pointer.HungerMaterial[] hungerMaterials | Arc colours per hunger level. |
private Dictionary<int, Color> hungerMaterialSet | Hunger level to arc colour lookup, built in Start. |
private Renderer[] intervalObjects | Spawned arc piece renderers. |
private Vector3[] intervalPoints | Arc points from the last trace. |
private Renderer intervalPrefab | Prefab for one arc piece. |
private Renderer intervalPrefabAndroid | Android version of intervalPrefab. Not read in this build. |
private int intervalsToSkip | Number of arc points near the hand that aren't shown. |
private float intervalTime | Time step between arc points (default 0.2). |
private Color invalidColor | Arc colour when the spot can't be teleported to. |
private bool isLimitingTeleportRadius | Backing field for IsLimitingTeleportRadius. |
private bool isValid | Whether the current landing spot is valid. |
private int lastActiveInteval | Index of the last arc piece shown, from the previous frame. |
private bool lastValid | isValid from the previous frame, for detecting changes. |
private float limitRadiusSquared | Backing field for LimitRadiusSquared. |
private float maxAngleForClimbTeleport | Dot limit for climb teleports. Not read in this class. |
private float maxAngleForTeleport | Steepest surface, in degrees, the player can teleport onto (default 30). |
private float maxDistanceDown | Furthest drop below the hand a valid landing can be, scaled by player size. |
private float maxDistanceUp | Highest rise above the hand a valid landing can be, scaled by player size. |
private int maximumIntervals | Most arc points traced (default 100). |
private float minimumTime | Seconds the pointer must be held before a teleport is valid. Below 0 means no wait. |
private float minimumVelocity | Lowest arc speed. |
private Vector3 oldNormal | Target normal from the previous frame, for smoothing. |
private Vector3 oldPosition | Target position from the previous frame, for smoothing. |
private Transform origin | Transform the arc starts from and the pieces are parented to. |
private PlayerController playerController | The player this pointer belongs to. |
private LayerMask playerPersonalSpace | Layer of other players' personal space. The arc slides off it to land beside them. |
private float positionLerp | Lerp for moving the target to the new spot. |
private RaycastHit previousHit | Hit from the last trace, exposed as Hit. |
private PooledObject readyEffect | Pooled effect shown when the charge completes. |
private PooledObjectDefinition readyEffectDefinition | Pool definition for the ready effect. |
private PooledObjectDefinition readyEffectDefinitionAndroid | Android version of readyEffectDefinition. Not read in this build. |
private LayerMask standableMask | Layers the player can land on, unless the current unlock overrides teleport layers. |
private MaterialGroup targetObject | Spawned landing target. |
private MaterialGroup targetPrefab | Prefab for the landing target. |
private MaterialGroup targetPrefabAndroid | Android version of targetPrefab. Not read in this build. |
private LayerMask teleportAwareTriggerMask | Layers checked for teleport aware triggers along the arc. |
private float teleportDistanceMultiplierWhileHolding | Arc speed multiplier while the hand holds something (default 0.5). |
private Material teleporterMaterial | Material copy for the arc and target, tinted each frame. |
private HashSet<ITeleportAwareTrigger> triggersPassedThrough | Backing field for TriggersPassedThrough. |
private PlayerUnlockManager unlockManager | Player's unlock manager, checked for teleport layer overrides. |
private Color validColor | Arc colour for a valid spot when hunger doesn't change it. |
private AnimationCurve velocityCurve | Arc speed over seconds held. Longer holds reach further. |
private float velocityTime | Seconds the pointer has been active, used for arc speed and charge. |
private bool wasReady | Whether the ready effect has played for this charge. |