Search Results for

    Show / Hide Table of Contents

    Struct UnsafeDepthWorld

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: ProjectDawn.Navigation
    Assembly: ProjectDawn.Navigation.dll
    Syntax
    public struct UnsafeDepthWorld : IDisposable

    Constructors

    | Improve this Doc View Source

    UnsafeDepthWorld(int, int, NonUniformTransform, AllocatorHandle)

    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
    Type Description
    int
    | 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
    Type Description
    int
    | Improve this Doc View Source

    Transform

    Declaration
    public NonUniformTransform Transform { get; }
    Property Value
    Type Description
    NonUniformTransform
    | Improve this Doc View Source

    Width

    Declaration
    public int Width { get; }
    Property Value
    Type Description
    int

    Methods

    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    GetCell(int)

    Converts index to cell.

    Declaration
    public int2 GetCell(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    int2
    | Improve this Doc View Source

    GetCellIndex(int2)

    Converts cell to index.

    Declaration
    public int GetCellIndex(int2 point)
    Parameters
    Type Name Description
    int2 point
    Returns
    Type Description
    int
    | 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
    Type Description
    float3
    | Improve this Doc View Source

    GetHeight(int2)

    Declaration
    public float GetHeight(int2 cell)
    Parameters
    Type Name Description
    int2 cell
    Returns
    Type Description
    float
    | 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
    Type Description
    bool
    | 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
    Type Description
    bool
    | 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
    Type Description
    bool
    | 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
    Type Description
    bool
    | 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
    Type Description
    float3
    | Improve this Doc View Source

    SampleHeight(float2)

    Declaration
    public float SampleHeight(float2 point)
    Parameters
    Type Name Description
    float2 point
    Returns
    Type Description
    float
    | Improve this Doc View Source

    SampleHeight(float3)

    Declaration
    public float SampleHeight(float3 position)
    Parameters
    Type Name Description
    float3 position
    Returns
    Type Description
    float
    | Improve this Doc View Source

    SetHeightField(ReadOnlySpan<float>)

    Declaration
    public void SetHeightField(ReadOnlySpan<float> heights)
    Parameters
    Type Name Description
    ReadOnlySpan<float> heights
    | 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
    Type Description
    bool

    Implements

    IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © ProjectDawn.
    Generated by DocFX