A* Pathfinding Project  4.3.2
The A* Pathfinding Project for Unity 3D
RVOSquareObstacle Class Reference

Square Obstacle for RVO Simulation. More...

Detailed Description

Square Obstacle for RVO Simulation.

A* Pro Feature:
This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited
The Pro version can be bought here

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...
 
virtual void Reset ()
 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...
 
- Properties inherited from VersionedMonoBehaviour
int Util.IEntityIndex. EntityIndex [get, set]
 Internal entity index used by #BurstBatchHelper. More...
 
- Properties inherited from IEntityIndex
int EntityIndex [get, set]
 

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.ISimulator sim
 Reference to simulator. More...
 

Member Function Documentation

◆ AreGizmosDirty()

override bool AreGizmosDirty ( )
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.

◆ CreateObstacles()

override void CreateObstacles ( )
protectedvirtual

Create Obstacles.

Override this and add logic for creating obstacles. You should not use the simulator's function calls directly.

See also
AddObstacle

Implements RVOObstacle.

Member Data Documentation

◆ center

Vector2 center = Vector3.zero

Center of the square.

◆ height

float height = 1

Height of the obstacle.

◆ size

Vector2 size = Vector3.one

Size of the square.

Property Documentation

◆ ExecuteInEditor

override bool ExecuteInEditor
getprotected

◆ Height

override float Height
getprotected

◆ LocalCoordinates

override bool LocalCoordinates
getprotected

◆ StaticObstacle

override bool StaticObstacle
getprotected

The documentation for this class was generated from the following file: