Infohazard.HyperNav 1.1.5
3D Navigation for Flying Characters
|
Base class for obstacles that are not expected to perform avoidance, but are avoided by agents. More...
Protected Member Functions | |
virtual void | OnEnable () |
Resets desired velocity and adds self to list of all obstacles. More... | |
virtual void | OnDisable () |
Removes self from list of all obstacles. More... | |
Properties | |
virtual float | MaxSpeed [get, set] |
Maximum speed the object can travel at. More... | |
virtual float | Radius [get, set] |
Radius of the object from its position. More... | |
virtual Vector3 | Position [get] |
World-space position of the object. More... | |
virtual Vector3 | InputVelocity [get] |
The object's desired (or actual) velocity. More... | |
TagMask | TagMask [get, private set] |
Tag of the object for matching agents' IAvoidanceAgent.AvoidedTags. More... | |
Properties inherited from Infohazard.HyperNav.IAvoidanceObstacle | |
Vector3 | Position [get] |
World-space position of the object. More... | |
Vector3 | InputVelocity [get] |
The object's desired (or actual) velocity. More... | |
float | MaxSpeed [get] |
Maximum speed the object can travel at. More... | |
float | Radius [get] |
Radius of the object from its position. More... | |
TagMask | TagMask [get] |
Tag of the object for matching agents' IAvoidanceAgent.AvoidedTags. More... | |
Private Attributes | |
float | _radius = 0.5f |
(Serialized) Radius of the obstacle. More... | |
float | _maxSpeed = 0 |
(Serialized) Maximum speed the obstacle can travel at. More... | |
Base class for obstacles that are not expected to perform avoidance, but are avoided by agents.
Objects that do perform avoidance (which are obstacles as well) should inherit from AvoidanceAgent instead, which is a derived class of AvoidanceObstacleBase.
|
protectedvirtual |
Removes self from list of all obstacles.
Reimplemented in Infohazard.HyperNav.AvoidanceAgent.
|
protectedvirtual |
Resets desired velocity and adds self to list of all obstacles.
Reimplemented in Infohazard.HyperNav.AvoidanceAgent, and Infohazard.HyperNav.SimpleAvoidanceObstacle.
|
private |
(Serialized) Maximum speed the obstacle can travel at.
|
private |
(Serialized) Radius of the obstacle.
|
get |
The object's desired (or actual) velocity.
Implements Infohazard.HyperNav.IAvoidanceObstacle.
|
getset |
Maximum speed the object can travel at.
Implements Infohazard.HyperNav.IAvoidanceObstacle.
|
get |
World-space position of the object.
Implements Infohazard.HyperNav.IAvoidanceObstacle.
|
getset |
Radius of the object from its position.
Implements Infohazard.HyperNav.IAvoidanceObstacle.
|
getprivate set |
Tag of the object for matching agents' IAvoidanceAgent.AvoidedTags.
Implements Infohazard.HyperNav.IAvoidanceObstacle.