A* Pathfinding Project
4.1.9
The A* Pathfinding Project for Unity 3D
|
Square Obstacle for RVO Simulation. More...
Square Obstacle for RVO Simulation.
Public Attributes | |
Vector2 | center = Vector3.zero |
Center of the square. More... | |
float | height = 1 |
Height of the obstacle. More... | |
Vector2 | size = Vector3.one |
Size of the square. More... | |
Public Attributes inherited from RVOObstacle | |
RVOLayer | layer = RVOLayer.DefaultObstacle |
ObstacleVertexWinding | obstacleMode |
Mode of the obstacle. More... | |
Protected Member Functions | |
override bool | AreGizmosDirty () |
Called in the editor. More... | |
override void | CreateObstacles () |
Create Obstacles. More... | |
Protected Member Functions inherited from RVOObstacle | |
void | AddObstacle (Vector3[] vertices, float height) |
Adds an obstacle with the specified vertices. More... | |
void | FindSimulator () |
Finds a simulator in the scene. More... | |
virtual Matrix4x4 | GetMatrix () |
Get's the matrix to use for vertices. More... | |
Protected Member Functions inherited from VersionedMonoBehaviour | |
virtual void | Awake () |
virtual int | OnUpgradeSerializedData (int version, bool unityThread) |
Handle serialization backwards compatibility. More... | |
Properties | |
override bool | ExecuteInEditor [get] |
override float | Height [get] |
override bool | LocalCoordinates [get] |
override bool | StaticObstacle [get] |
Properties inherited from RVOObstacle | |
abstract bool | ExecuteInEditor [get] |
Enable executing in editor to draw gizmos. More... | |
abstract float | Height [get] |
abstract bool | LocalCoordinates [get] |
If enabled, all coordinates are handled as local. More... | |
abstract bool | StaticObstacle [get] |
Static or dynamic. More... | |
Additional Inherited Members | |
Public Types inherited from RVOObstacle | |
enum | ObstacleVertexWinding { KeepOut, KeepIn } |
RVO Obstacle Modes. More... | |
Public Member Functions inherited from RVOObstacle | |
void | OnDisable () |
Disables the obstacle. More... | |
void | OnDrawGizmos () |
Draws Gizmos. More... | |
void | OnDrawGizmos (bool selected) |
Draws Gizmos. More... | |
void | OnDrawGizmosSelected () |
Draws Gizmos. More... | |
void | OnEnable () |
Enabled the obstacle. More... | |
void | Start () |
Creates obstacles. More... | |
void | Update () |
Updates obstacle if required. More... | |
Protected Attributes inherited from RVOObstacle | |
Pathfinding.RVO.Simulator | sim |
Reference to simulator. More... | |
|
protectedvirtual |
Called in the editor.
This function should return true if any variables which can change the shape or position of the obstacle has changed since the last call to this function. Take a look at the RVOSquareObstacle for an example.
Implements RVOObstacle.
|
protectedvirtual |
Create Obstacles.
Override this and add logic for creating obstacles. You should not use the simulator's function calls directly.
Implements RVOObstacle.
Vector2 center = Vector3.zero |
Center of the square.
float height = 1 |
Height of the obstacle.
Vector2 size = Vector3.one |
Size of the square.
|
getprotected |
|
getprotected |
|
getprotected |
|
getprotected |