Class RaycastJobHelper<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Marus.Sensors
Assembly: cs.temp.dll.dll
Syntax
public class RaycastJobHelper<T> : RaycastJobHelper where T : struct
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
RaycastJobHelper(GameObject, NativeArray<Vector3>, Func<RaycastHit, Vector3, Int32, T>, Action<NativeArray<Vector3>, NativeArray<T>>, Single, Single, Single)
Declaration
public RaycastJobHelper(GameObject obj, NativeArray<Vector3> directions, Func<RaycastHit, Vector3, int, T> getResultFromHit, Action<NativeArray<Vector3>, NativeArray<T>> onFinish, float maxDistance = 3.40282347E+38F, float minDistance = 0F, float sampleFrequency = 10F)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | obj | |
| NativeArray<Vector3> | directions | |
| Func<RaycastHit, Vector3, System.Int32, T> | getResultFromHit | |
| Action<NativeArray<Vector3>, NativeArray<T>> | onFinish | |
| System.Single | maxDistance | |
| System.Single | minDistance | |
| System.Single | sampleFrequency |
Fields
SampleFrequency
Declaration
public float SampleFrequency
Field Value
| Type | Description |
|---|---|
| System.Single |
Methods
Dispose()
Declaration
public void Dispose()
GetResultFromHit(Int32, RaycastHit, Vector3, Int32)
Declaration
public static T GetResultFromHit(int objId, RaycastHit hit, Vector3 direction, int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | objId | |
| RaycastHit | hit | |
| Vector3 | direction | |
| System.Int32 | index |
Returns
| Type | Description |
|---|---|
| T |
RaycastInLoop()
Declaration
public IEnumerator RaycastInLoop()
Returns
| Type | Description |
|---|---|
| IEnumerator |
RaycastSync()
Declaration
public void RaycastSync()