summaryrefslogtreecommitdiff
path: root/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/RVO/RVOSquareObstacle.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/RVO/RVOSquareObstacle.cs')
-rw-r--r--Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/RVO/RVOSquareObstacle.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/RVO/RVOSquareObstacle.cs b/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/RVO/RVOSquareObstacle.cs
new file mode 100644
index 0000000..f4bff75
--- /dev/null
+++ b/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/RVO/RVOSquareObstacle.cs
@@ -0,0 +1,26 @@
+using UnityEngine;
+
+namespace Pathfinding.RVO {
+ /// <summary>
+ /// 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.
+ /// </summary>
+ [AddComponentMenu("")]
+ [HelpURL("https://arongranberg.com/astar/documentation/stable/rvosquareobstacle.html")]
+ public class RVOSquareObstacle : RVOObstacle {
+ /// <summary>Height of the obstacle</summary>
+ public float height = 1;
+
+ /// <summary>Size of the square</summary>
+ public Vector2 size = Vector3.one;
+
+ /// <summary>Center of the square</summary>
+ 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; } }
+ }
+}