Class 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.
Inheritance
Namespace: KaijuSolutions.Agents.Extensions
Syntax
public static class KaijuAgentsExtractPoints
Methods
ExtractPoints(Component, Component, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Component position, Component direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The starting position where the casting were performed. |
| Component | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Component, GameObject, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Component position, GameObject direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The starting position where the casting were performed. |
| GameObject | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Component, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Component position, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The starting position where the casting were performed in its forward direction. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Component, Transform, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Component position, Transform direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The starting position where the casting were performed. |
| Transform | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Component, Vector2, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Component position, Vector2 direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The starting position where the casting were performed. |
| Vector2 | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Component, Vector3, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Component position, Vector3 direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The starting position where the casting were performed. |
| Vector3 | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(GameObject, Component, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this GameObject position, Component direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The starting position where the casting were performed. |
| Component | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(GameObject, GameObject, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this GameObject position, GameObject direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The starting position where the casting were performed. |
| GameObject | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(GameObject, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this GameObject position, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The starting position where the casting were performed in its forward direction. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(GameObject, Transform, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this GameObject position, Transform direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The starting position where the casting were performed. |
| Transform | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(GameObject, Vector2, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this GameObject position, Vector2 direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The starting position where the casting were performed. |
| Vector2 | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(GameObject, Vector3, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this GameObject position, Vector3 direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The starting position where the casting were performed. |
| Vector3 | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Transform, Component, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Transform position, Component direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The starting position where the casting were performed. |
| Component | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Transform, GameObject, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Transform position, GameObject direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The starting position where the casting were performed. |
| GameObject | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Transform, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Transform position, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The starting position where the casting were performed in its forward direction. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Transform, Transform, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Transform position, Transform direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The starting position where the casting were performed. |
| Transform | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Transform, Vector2, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Transform position, Vector2 direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The starting position where the casting were performed. |
| Vector2 | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Transform, Vector3, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Transform position, Vector3 direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The starting position where the casting were performed. |
| Vector3 | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Vector2, Component, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Vector2 position, Component direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The starting position where the casting were performed. |
| Component | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Vector2, GameObject, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Vector2 position, GameObject direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The starting position where the casting were performed. |
| GameObject | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Vector2, Transform, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Vector2 position, Transform direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The starting position where the casting were performed. |
| Transform | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Vector2, Vector2, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Vector2 position, Vector2 direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The starting position where the casting were performed. |
| Vector2 | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Vector2, Vector3, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Vector2 position, Vector3 direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The starting position where the casting were performed. |
| Vector3 | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Vector3, Component, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Vector3 position, Component direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The starting position where the casting were performed. |
| Component | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Vector3, GameObject, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Vector3 position, GameObject direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The starting position where the casting were performed. |
| GameObject | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Vector3, Transform, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Vector3 position, Transform direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The starting position where the casting were performed. |
| Transform | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Vector3, Vector2, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Vector3 position, Vector2 direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The starting position where the casting were performed. |
| Vector2 | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |
ExtractPoints(Vector3, Vector3, Nullable<RaycastHit>[], Vector3[], Single, Single)
Extract the point vectors from hits. This does not perform any actual casting. For casting, see KaijuAgentsArcRaycast and KaijuAgentsArcSphereCast. This can be useful if your KaijuAgent only needs position vectors or to help perform debugging.
Declaration
public static void ExtractPoints(this Vector3 position, Vector3 direction, RaycastHit? [] hits, Vector3[] positions, float angle = 360F, float distance = 3.40282347E+38F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The starting position where the casting were performed. |
| Vector3 | direction | The central direction of the casting. |
| System.Nullable<RaycastHit>[] | hits | The hits from casting. |
| Vector3[] | positions | Will be updated to store the positions from the hits or otherwise the maximum extents for misses. |
| System.Single | angle | The angle of the arc in degrees which was used for casting. |
| System.Single | distance | The distance of the casts which were run. |