Namespace KaijuSolutions.Agents.Extensions
Helper extensions functionality for use with Kaiju Agents.
Classes
KaijuAgentsAngle
Extensions to get the angle in degrees from a position towards a target around the global Y axis. These will be from -180 to 180 degrees.
KaijuAgentsAngleSorter
Comparer class to sort by angle in degrees from a position towards a target around the global Y axis. Used in the extension methods found in KaijuAgentsSortAngle.
KaijuAgentsArcRaycast
Extension methods to perform ray casting along an arc. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsArcSphereCast
Extension methods to perform sphere casting along an arc. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsBetween
Extension methods to see if points are between two given distances of each other along the X and Z axes. These methods are inclusive of the distances to check. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsBetween3
Extension methods to see if points are between two given distances of each other along all three axes. These methods are inclusive of the distances to check. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsBeyond
Extension methods to see if points are beyond a given distance of each other along the X and Z axes. These methods are inclusive of the distance to check. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsBeyond3
Extension methods to see if points are beyond a given distance of each other along all three axes. These methods are inclusive of the distance to check. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsDirection
Extension methods to get the direction along the X and Z axes from one position to another. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsDirection3
Extension methods to get the direction along all three axes from one position to another. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsDistance
Extension methods to get the 2D distance across the X and Z axes. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsDistance3
Extension methods distance across all three axes. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsDistance3Sorter
Comparer class to sort by distance along all three axes. Used in the extension methods found in KaijuAgentsSortDistance3.
KaijuAgentsDistanceSorter
Comparer class to sort by distance along the X and Z axes. Used in the extension methods found in KaijuAgentsSortDistance.
KaijuAgentsEvade
Standalone evade steering extension methods.
KaijuAgentsExpand
Extension method to expand a 2D vector across the X and Z axes to all three axes, setting the Y axis to zero.
KaijuAgentsExtractPoints
Extension methods to extract the point vectors from hits. These do not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsFarthest
Extension methods to get the farthest object from a given position along the X and Z axes. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsFarthest3
Extension methods to get the farthest object from a given position along all three axes. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsFindPath
Extension methods for finding a path.
KaijuAgentsFlatten
Extension methods to flatten objects down to their 2D representation as a Vector2 from the X and Z axes.
KaijuAgentsFlee
Standalone flee steering extension methods.
KaijuAgentsHasSight
Extension methods to see if there is a direct line of sight between two positions across all axes. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsInView
Extension methods to get if a target is within the field-of-view. This does not consider vertical field-of-view, meaning it checks relative to the global Y axis. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsNearest
Extension methods to get the nearest object to a given position along the X and Z axes. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsNearest3
Extension methods to get the nearest object to a given position along all three axes. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsPursue
Standalone pursue steering extension methods.
KaijuAgentsRaycast
Extension methods to perform ray casting. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsSeek
Standalone seek steering extension methods.
KaijuAgentsSortAngle
Extension methods for sorting objects by their angle in degrees from a position towards a target around the global Y axis.
KaijuAgentsSortDistance
Extension methods for sorting objects by their distance to a given position along the X and Z axes. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsSortDistance3
Extension methods for sorting objects by their distance to a given position along all three axes. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsSpeed
Extension methods to get the speed at which an object is travelling along the X and Z axes. Methods without a delta time value will use Time.deltaTime. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsSpeed3
Extension methods to get the speed at which an object is travelling along all three axes. Methods without a delta time value will use Time.deltaTime. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsSphereCast
Extension methods to perform sphere casting. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsVelocity
Extension methods to get the velocity at which an object is travelling along the X and Z axes. Methods without a delta time value will use Time.deltaTime. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsVelocity3
Extension methods to get the velocity at which an object is travelling along all three axes. Methods without a delta time value will use Time.deltaTime. Any Vector2 values will be expanded via the Expand(Vector2) method.
KaijuAgentsWithin
Extension methods to see if points are within a given distance of each other along the X and Z axes. These methods are inclusive of the distance to check. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
KaijuAgentsWithin3
Extension methods to see if points are within a given distance of each other along all three axes. These methods are inclusive of the distance to check. Any Vector2 values will be expanded via the Expand(Vector2) method.
Enums
KaijuAngleSortMode
The mode to sort angles by.