Struct UnsafeDepthWorld
Assembly: ProjectDawn.Navigation.dll
Syntax
public struct UnsafeDepthWorld : IDisposable
Constructors
|
Improve this Doc
View Source
Declaration
public UnsafeDepthWorld(int width, int height, NonUniformTransform transform, AllocatorManager.AllocatorHandle allocator)
Parameters
Type |
Name |
Description |
int |
width |
|
int |
height |
|
NonUniformTransform |
transform |
|
AllocatorManager.AllocatorHandle |
allocator |
|
Properties
|
Improve this Doc
View Source
Height
Declaration
public int Height { get; }
Property Value
|
Improve this Doc
View Source
HeightField
Declaration
public NativeArray<float> HeightField { get; }
Property Value
Type |
Description |
NativeArray<float> |
|
|
Improve this Doc
View Source
Length
Declaration
public int Length { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public NonUniformTransform Transform { get; }
Property Value
Type |
Description |
NonUniformTransform |
|
|
Improve this Doc
View Source
Width
Declaration
public int Width { get; }
Property Value
Methods
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
GetCell(int)
Declaration
public int2 GetCell(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns
|
Improve this Doc
View Source
GetCellIndex(int2)
Declaration
public int GetCellIndex(int2 point)
Parameters
Type |
Name |
Description |
int2 |
point |
|
Returns
|
Improve this Doc
View Source
GetCellPosition(int2)
Returns cell enter world space position.
Declaration
public float3 GetCellPosition(int2 cell)
Parameters
Type |
Name |
Description |
int2 |
cell |
|
Returns
|
Improve this Doc
View Source
GetHeight(int2)
Declaration
public float GetHeight(int2 cell)
Parameters
Type |
Name |
Description |
int2 |
cell |
|
Returns
|
Improve this Doc
View Source
IsSphereOverlap(float3, float)
Declaration
public bool IsSphereOverlap(float3 center, float radius)
Parameters
Type |
Name |
Description |
float3 |
center |
|
float |
radius |
|
Returns
|
Improve this Doc
View Source
IsValidCell(int2)
Returns true, if cell is within world bounds and has no obstacle.
Declaration
public bool IsValidCell(int2 cell)
Parameters
Type |
Name |
Description |
int2 |
cell |
|
Returns
|
Improve this Doc
View Source
IsValidQuad(float2, float2)
Declaration
public bool IsValidQuad(float2 start, float2 end)
Parameters
Type |
Name |
Description |
float2 |
start |
|
float2 |
end |
|
Returns
|
Improve this Doc
View Source
IsValidQuad(float3, float3)
Declaration
public bool IsValidQuad(float3 position, float3 size)
Parameters
Type |
Name |
Description |
float3 |
position |
|
float3 |
size |
|
Returns
|
Improve this Doc
View Source
MapLocation(float3, float)
Declaration
public float3 MapLocation(float3 position, float heightOffset = 0)
Parameters
Type |
Name |
Description |
float3 |
position |
|
float |
heightOffset |
|
Returns
|
Improve this Doc
View Source
SampleHeight(float2)
Declaration
public float SampleHeight(float2 point)
Parameters
Type |
Name |
Description |
float2 |
point |
|
Returns
|
Improve this Doc
View Source
SampleHeight(float3)
Declaration
public float SampleHeight(float3 position)
Parameters
Type |
Name |
Description |
float3 |
position |
|
Returns
|
Improve this Doc
View Source
SetHeightField(ReadOnlySpan<float>)
Declaration
public void SetHeightField(ReadOnlySpan<float> heights)
Parameters
|
Improve this Doc
View Source
TryGetCell(float3, out int2)
Returns cell, if it is valid.
Declaration
public bool TryGetCell(float3 position, out int2 cell)
Parameters
Type |
Name |
Description |
float3 |
position |
|
int2 |
cell |
|
Returns
Implements