using UnityEngine; namespace Pathfinding.RVO { /// /// Square Obstacle for RVO Simulation. /// /// Deprecated: This component is deprecated. Local avoidance colliders never worked particularly well and the performance was poor. Modify the graphs instead so that pathfinding takes obstacles into account. /// [AddComponentMenu("")] [HelpURL("https://arongranberg.com/astar/documentation/stable/rvosquareobstacle.html")] public class RVOSquareObstacle : RVOObstacle { /// Height of the obstacle public float height = 1; /// Size of the square public Vector2 size = Vector3.one; /// Center of the square public Vector2 center = Vector3.zero; protected override bool StaticObstacle { get { return false; } } protected override bool ExecuteInEditor { get { return true; } } protected override bool LocalCoordinates { get { return true; } } protected override float Height { get { return height; } } } }