Takes movement commands from other components and uses pathfinding to walk the character motor towards a destination.
More...
Takes movement commands from other components and uses pathfinding to walk the character motor towards a destination.
◆ OnThreatPosition()
void CoverShooter.AIMovement.OnThreatPosition |
( |
Vector3 |
value | ) |
|
Notified by the brains of a new threat position.
- Parameters
-
◆ ToCircle()
void CoverShooter.AIMovement.ToCircle |
( |
Vector3 |
threat | ) |
|
Told by the brains to circle around a threat.
◆ ToCrouch()
void CoverShooter.AIMovement.ToCrouch |
( |
| ) |
|
◆ ToKeepSprintingFrom()
void CoverShooter.AIMovement.ToKeepSprintingFrom |
( |
Vector3 |
target | ) |
|
Told by the brains to sprint away from a position.
Stops sprinting of not being told so in the following frames.
◆ ToRunFrom()
void CoverShooter.AIMovement.ToRunFrom |
( |
Vector3 |
target | ) |
|
Told by the brains to run away from a position.
◆ ToRunInDirection()
void CoverShooter.AIMovement.ToRunInDirection |
( |
Vector3 |
vector | ) |
|
Told to run in a direction.
◆ ToRunTo()
void CoverShooter.AIMovement.ToRunTo |
( |
Vector3 |
destination | ) |
|
Told by the brains to run to a destination position.
◆ ToSprintFrom()
void CoverShooter.AIMovement.ToSprintFrom |
( |
Vector3 |
target | ) |
|
Told by the brains to sprint away from a position.
◆ ToSprintInDirection()
void CoverShooter.AIMovement.ToSprintInDirection |
( |
Vector3 |
vector | ) |
|
Told to sprint in a direction.
◆ ToSprintTo()
void CoverShooter.AIMovement.ToSprintTo |
( |
Vector3 |
destination | ) |
|
Told by the brains to sprint to a destination position.
◆ ToStopCrouching()
void CoverShooter.AIMovement.ToStopCrouching |
( |
| ) |
|
◆ ToStopMoving()
void CoverShooter.AIMovement.ToStopMoving |
( |
| ) |
|
Told by the brains to walk to stop moving.
◆ ToWalkFrom()
void CoverShooter.AIMovement.ToWalkFrom |
( |
Vector3 |
target | ) |
|
Told by the brains to walk away from a position.
◆ ToWalkInDirection()
void CoverShooter.AIMovement.ToWalkInDirection |
( |
Vector3 |
vector | ) |
|
Told to walk in a direction.
◆ ToWalkTo()
void CoverShooter.AIMovement.ToWalkTo |
( |
Vector3 |
destination | ) |
|
Told by the brains to walk to a destination position.
◆ CircleDelay
float CoverShooter.AIMovement.CircleDelay = 2 |
Seconds to wait before changing the direction of circling.
◆ DebugDestination
bool CoverShooter.AIMovement.DebugDestination = false |
Should a line to destination be drawn in the editor.
◆ DebugPath
bool CoverShooter.AIMovement.DebugPath = false |
Should a path to destination be drawn in the editor.
◆ ObstructionRadius
float CoverShooter.AIMovement.ObstructionRadius = 1.5f |
The AI will move out of the way of other actors that are closer than the threshold.
◆ RollTriggerDistance
float CoverShooter.AIMovement.RollTriggerDistance = 2 |
The AI will roll if it is ordered to sprint from a position closer than this property.
◆ Destination
Vector3 CoverShooter.AIMovement.Destination |
|
get |
Position the AI is walking towards.
Returns current position when circling or retreating.
The documentation for this class was generated from the following file:
- E:/Projects/tpcs/Assets/ThirdPersonCoverShooter/Scripts/AI/Controllers/AIMovement.cs