44 #ifndef __WAY_PORTAL_H__
45 #define __WAY_PORTAL_H__
160 #endif // __WAY_PORTAL_H__
Vector2 getP1() const
Returns the second edge point.
Definition: NavMeshEdge.h:104
The basic structure defining a way "point" along a path through a navigation mesh. It consists of the navigation mesh edge to pass through and the node one should be in while heading to the edge.
Definition: WayPortal.h:64
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
void setPreferredDirection(const Vector2 &pos, float radius, const Vector2 &dir, Agents::PrefVelocity &pVel) const
Sets the directions on the preferred velocity based on the wayportal.
Definition: WayPortal.cpp:52
The navigation mesh adjacency graph edge.
Definition: NavMeshEdge.h:72
unsigned int _nodeID
The index of the node in which the agent is traveling toward the edge. It should be true that the spe...
Definition: WayPortal.h:149
The definition of a route through a navigation mesh from a start to an end node.
Definition: Route.h:60
Defines the "edge" of the adjacency graph in a navigation mesh.
bool _p0IsLeft
Reports if the edge's P0 is the left vertex. Left is defined based on moving across the portal from t...
Definition: WayPortal.h:156
Vector2 intersectionPoint(const Vector2 &point, const Vector2 &dir) const
Computes the intersection point of the given line with this portal.
Definition: WayPortal.cpp:59
Vector2 getRight(float offset) const
Retrives the position in the portal offset from the right physical vertex.
Definition: WayPortal.h:110
Vector2 getRight() const
Retrives the right physical vertex of the portal.
Definition: WayPortal.h:101
Vector2 getLeft(float offset) const
Retrives the position in the portal offset from the left physical vertex.
Definition: WayPortal.h:93
The definition of a preferred velocity.
Definition: PrefVelocity.h:68
WayPortal(const NavMeshEdge *edge, unsigned int nodeID, bool p0IsLeft)
Constructor.
Definition: WayPortal.cpp:47
The definition of a path through space comprising of a sequence of portals.
Definition: PortalPath.h:70
The namespace that contains the basic simulation mechanisms.
const NavMeshEdge * _edge
The edge which serves as goal.
Definition: WayPortal.h:142
Vector2 getP0() const
Returns the first edge point.
Definition: NavMeshEdge.h:89
Vector2 getLeft() const
Retrives the left physical vertex of the portal.
Definition: WayPortal.h:84