Struct PIDMovement
Public
Core control loop for the FollowerEntity movement script.
Inner Types
Public Methods
Control
(state, dt, obstacleData, obstacleIndices, nextCorner, agentRadius, remainingDistance, closestOnNavmesh, draw, debugFlags=…)
Public
CurveFollowingStrength
(signedDistToClearArea, radiusToWall, remainingDistance)
Public
SidewaysAvoidance
(position, reference, edges, estimatedForward, maxDesiredWallDistance, remainingDistance, draw, debugFlags, centerRadius, signedDistToCurve, signedDistToClearArea)
Public
Speed
(remainingDistance)
Public
Public Static Methods
ClipLineByHalfPlaneX
(a, b, x, side)
Public
Static
Control
(settings, dt, controlParams, draw, maxDesiredWallDistance)
Public
Static
ControlInternal
(settings, state, dt, obstacleVertexGroups, obstacleVertices, unmanagedObstacles, obstacleIndices, obstacleCount, nextCorner, agentRadius, remainingDistance, closestOnNavmesh, draw, debugFlags=…)
Public
Static
InterestingEdgeBounds
(settings, position, nextCorner, height, plane)
Finds the bounding box in which this controller is interested in navmesh edges.
Public
Static
MaxAngle
(a, b, c, clockwise)
Returns either the most clockwise, or most counter-clockwise direction of the three given directions.
Public
Static
OptimizeDirection
(start, end, desiredRadius, edges)
Public
Static
SegmentPointDistanceSq
(e1, e2, point)
Public
Static
SmallestDistance
(point, edges)
Public
Static
Public Variables
allowRotatingOnSpot
Public
desiredWallDistance
Public
followingStrength
Public
maxOnSpotRotationSpeed
Public
maxRotationSpeed
Maximum rotation speed in degrees per second.
Public
slowdownTime
Public
speed
Public
Public Static Variables
ALLOWED_OVERLAP_FACTOR
Public
Static
DESTINATION_CLEARANCE_FACTOR
Public
Static
OPTIMIZATION_ITERATIONS
Public
Static
STEP_MULTIPLIER
Public
Static
Public Enums
DebugFlags
Public
Private/Protected Members
MarkerConvertObstacles
Private
Static
Readonly
MarkerOptimizeDirection
Private
Static
Readonly
MarkerPID
Private
Static
Readonly
MarkerSidewaysAvoidance
Private
Static
Readonly
MarkerSmallestDistance
Private
Static
Readonly