From 8722a9920c1f6119bf6e769cba270e63097f8e25 Mon Sep 17 00:00:00 2001
From: chai <215380520@qq.com>
Date: Thu, 23 May 2024 10:08:29 +0800
Subject: + astar project
---
.../RVO/RVOSquareObstacle.cs | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/RVO/RVOSquareObstacle.cs
(limited to 'Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/RVO/RVOSquareObstacle.cs')
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 {
+ ///
+ /// 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; } }
+ }
+}
--
cgit v1.1-26-g67d0