private float acceleration | Backing field for Acceleration. |
private float angularDrag | Angular drag applied each step at full power. |
private float blockedUntil | Time until which IsBlocked is true, set when RVO stops all movement. |
private Vector2 cacheForward | Last flat forward direction used for turning. |
private Vector3 cacheUp | Last up direction used for surface alignment. |
private float currentMoveDuration | Duration of the current normalized move. |
private static int currentPhysicsCallIndex | Shared counter of which of the 5 spread slots runs this physics step. |
private float currentTime | Time the current normalized move started. |
private float detatchStrength | How much speed drops when the walker is away from the navmesh path (when not clamped). |
private static float fixedDeltaTime | Cached Time.fixedDeltaTime. |
private float gravityMultiplier | Backing field for GravityMultiplier. |
private LayerMask ground | Backing field for GroundLayers. |
private bool hasRVO | True when an RVOController is present for local avoidance. |
private bool isAlignedWithSurface | If true, the walker tilts to match the ground normal. |
private bool isClampedToNavMesh | If true, positions are clamped onto the navmesh. |
private bool isFinalStretch | True on the last path segment this step; passed in WalkerState. |
private bool isFlying | If true, the walker isn't grounded and keeps up to about 2m above ground. |
private bool isMovementForwardOnly | If true, speed only counts in the facing direction. |
private bool isNormalizedMoving | True while a NormalizedMove is active. |
private bool isPivoting | True while turning in place on a sharp corner. |
private bool isSlowedDownWhenNotMovingForward | Backing field for IsSlowedWhenNotMoving. |
private bool isWalking | True while moving; going false fires Stopped. |
private float lastDelta | Per-step height change used to spread the ground move over the 5 steps. |
private float lastPhysicsHeight | Ground height found by the last raycast. |
private Vector3 lastUp | Ground normal from the last raycast, used for surface alignment. |
private float maximumSpeed | Backing field for MaximumSpeed. |
private float minimumPivotAngle | Turn angle above which the walker stops and pivots in place. |
private Navigator navigator | The Navigator on the same object that supplies the path. |
private static int nextPhysicsCallIndex | Next spread slot to give a new walker. |
private NormalizedPath normalizedPath | Timed path used by NormalizedTravel. |
private int physicsCallIndex | This walker's slot in the 5-step spread, or -1 before it's assigned. |
private const int physicsFrameSpread | Number of physics steps ground checks are spread over: 5. |
private float pivotingSpeedLimit | Speed below which pivoting can start. |
private float powerPerSecond | Backing field for PowerPerSecond. |
private bool preventRoll | If true, surface alignment doesn't roll the walker sideways. |
private float raycastHeight | Height above the walker the ground raycast starts from. |
private float reevaluationInterval | Unused in this build. |
private float rotated | Turn speed this step, as a fraction of rotationSpeed; passed in WalkerState. |
private float rotationSpeed | Backing field for RotationSpeed. |
private RVOController rvoController | Optional RVO controller for avoiding other agents. |
private float stopPivoting | Remaining angle at which a pivot ends. |
private float surfaceAlignSpeed | Degrees per second the walker tilts toward the ground normal. |
private float targetSlowdown | Backing field for TargetSlowdown. |
private Transform transform | Transform of topic, the rigidbody being moved. |
private static IUnityUpdateMethod updatePhysicsCallIndex | Fixed update registration for UpdatePhysicsCallIndex, shared by all walkers. |
private float velocityDrag | Horizontal velocity drag applied each step at full power. |
private Vector2 velocityXZ | Current horizontal walking velocity. |
private float velocityY | Stored vertical speed used when the rigidbody is kinematic. |
private float wallAvoidanceDistance | How close a navmesh wall must be to push the walker. |
private float wallAvoidanceForce | Strength of the push away from walls. |
private List<Vector3> wallBuffer | Wall segments near the walker, refreshed on its turn. |