Class Sonar3D
Sonar that cast N rays evenly distributed in configured field of view.
Implemented using IJobParallelFor on CPU
Can drop performance
Inheritance
System.Object
Sonar3D
Assembly: cs.temp.dll.dll
Syntax
public class Sonar3D : SensorBase
Fields
HeightRes
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
HorizontalFieldOfView
Declaration
public float HorizontalFieldOfView
Field Value
| Type |
Description |
| System.Single |
|
imageHeight
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
IsIdeal
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
MaxDistance
Declaration
Field Value
| Type |
Description |
| System.Single |
|
MinDistance
Declaration
Field Value
| Type |
Description |
| System.Single |
|
ParticleMaterial
Declaration
public Material ParticleMaterial
Field Value
| Type |
Description |
| Material |
|
pointCloudShader
Declaration
public ComputeShader pointCloudShader
Field Value
| Type |
Description |
| ComputeShader |
|
pointsCopy
Declaration
public NativeArray<Vector3> pointsCopy
Field Value
| Type |
Description |
| NativeArray<Vector3> |
|
RayIntensity
Declaration
public float RayIntensity
Field Value
| Type |
Description |
| System.Single |
|
sonarData
Declaration
public NativeArray<SonarReading> sonarData
Field Value
sonarDisplay
Declaration
public RawImage sonarDisplay
Field Value
| Type |
Description |
| RawImage |
|
VerticalFieldOfView
Declaration
public float VerticalFieldOfView
Field Value
| Type |
Description |
| System.Single |
|
WidthRes
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
Methods
OnSonarHit(RaycastHit, Vector3, Int32)
Declaration
public SonarReading OnSonarHit(RaycastHit hit, Vector3 direction, int i)
Parameters
| Type |
Name |
Description |
| RaycastHit |
hit |
|
| Vector3 |
direction |
|
| System.Int32 |
i |
|
Returns
SampleSensor()
Declaration
protected override void SampleSensor()
Overrides