Contents
Interface IPathWaypoint
- All Known Subinterfaces:
IPrefabPathWaypoint
- All Known Implementing Classes:
PatrolPathMarkerEntity, SimplePathWaypoint
public interface IPathWaypoint
Created on 17/08/2018
-
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the observation angle for the waypoint, i.e. how much an entity should be able to rotate while paused at itintgetOrder()Returns the index of this waypoint within the ordered pathdoubleReturns how long a pause is designated to be performed at the waypointorg.joml.Vector3dgetWaypointPosition(ComponentAccessor<EntityStore> componentAccessor) Returns the position of this waypointgetWaypointRotation(ComponentAccessor<EntityStore> componentAccessor) Returns the rotation of this waypoint
-
Method Details
-
getOrder
int getOrder()Returns the index of this waypoint within the ordered path- Returns:
- index of the waypoint
-
getWaypointPosition
Returns the position of this waypoint- Parameters:
componentAccessor- TheComponentAccessor<EntityStore>for component access.- Returns:
- waypoint position
-
getWaypointRotation
Returns the rotation of this waypoint- Parameters:
componentAccessor- TheComponentAccessor<EntityStore>for component access.- Returns:
- waypoint rotation
-
getPauseTime
double getPauseTime()Returns how long a pause is designated to be performed at the waypoint- Returns:
- pause length
-
getObservationAngle
float getObservationAngle()Returns the observation angle for the waypoint, i.e. how much an entity should be able to rotate while paused at it- Returns:
- the observation angle
-