Requires a CharacterMovement ability. Makes the character move randomly, until it finds an obstacle in its path, in which case it'll pick a new direction at random
More...
Requires a CharacterMovement ability. Makes the character move randomly, until it finds an obstacle in its path, in which case it'll pick a new direction at random
◆ CheckForDuration()
virtual void MoreMountains.TopDownEngine.AIActionMoveRandomly2D.CheckForDuration |
( |
| ) |
|
|
protectedvirtual |
Checks whether or not we should pick a new direction at random
◆ CheckForObstacles()
virtual void MoreMountains.TopDownEngine.AIActionMoveRandomly2D.CheckForObstacles |
( |
| ) |
|
|
protectedvirtual |
Checks for obstacles by casting a ray
◆ Initialization()
override void MoreMountains.TopDownEngine.AIActionMoveRandomly2D.Initialization |
( |
| ) |
|
|
virtual |
◆ Move()
virtual void MoreMountains.TopDownEngine.AIActionMoveRandomly2D.Move |
( |
| ) |
|
|
protectedvirtual |
◆ OnExitState()
override void MoreMountains.TopDownEngine.AIActionMoveRandomly2D.OnExitState |
( |
| ) |
|
|
virtual |
◆ PerformAction()
override void MoreMountains.TopDownEngine.AIActionMoveRandomly2D.PerformAction |
( |
| ) |
|
|
virtual |
◆ PickRandomDirection()
virtual void MoreMountains.TopDownEngine.AIActionMoveRandomly2D.PickRandomDirection |
( |
| ) |
|
|
protectedvirtual |
◆ _characterMovement
CharacterMovement MoreMountains.TopDownEngine.AIActionMoveRandomly2D._characterMovement |
|
protected |
◆ _collider
Collider2D MoreMountains.TopDownEngine.AIActionMoveRandomly2D._collider |
|
protected |
◆ _direction
Vector2 MoreMountains.TopDownEngine.AIActionMoveRandomly2D._direction |
|
protected |
◆ _lastDirectionChangeTimestamp
float MoreMountains.TopDownEngine.AIActionMoveRandomly2D._lastDirectionChangeTimestamp = 0f |
|
protected |
◆ _lastObstacleDetectionTimestamp
float MoreMountains.TopDownEngine.AIActionMoveRandomly2D._lastObstacleDetectionTimestamp = 0f |
|
protected |
◆ MaximumDurationInADirection
float MoreMountains.TopDownEngine.AIActionMoveRandomly2D.MaximumDurationInADirection = 2f |
the maximum time a character can spend going in a direction without changing
◆ MaximumRandomDirection
Vector2 MoreMountains.TopDownEngine.AIActionMoveRandomly2D.MaximumRandomDirection = new Vector2(1f, 1f) |
the maximum random direction to randomize from
◆ MinimumRandomDirection
Vector2 MoreMountains.TopDownEngine.AIActionMoveRandomly2D.MinimumRandomDirection = new Vector2(-1f, -1f) |
the minimal random direction to randomize from
◆ ObstacleLayerMask
LayerMask MoreMountains.TopDownEngine.AIActionMoveRandomly2D.ObstacleLayerMask = LayerManager.ObstaclesLayerMask |
the layers the character will try to avoid
◆ ObstaclesCheckFrequency
float MoreMountains.TopDownEngine.AIActionMoveRandomly2D.ObstaclesCheckFrequency = 0f |
the frequency (in seconds) at which to check for obstacles
◆ ObstaclesDetectionDistance
float MoreMountains.TopDownEngine.AIActionMoveRandomly2D.ObstaclesDetectionDistance = 1f |
the minimum distance from the target this Character can reach.
The documentation for this class was generated from the following file: