Search Results for

    Show / Hide Table of Contents

    Class CrowdData

    Crowd data used for initializing topographical surface data.

    Inheritance
    object
    Object
    ScriptableObject
    CrowdData
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: ProjectDawn.Navigation
    Assembly: ProjectDawn.Navigation.dll
    Syntax
    [CreateAssetMenu(fileName = "New Crowd Data", menuName = "AI/Crowd Data", order = 1000)]
    public class CrowdData : ScriptableObject

    Properties

    | Improve this Doc View Source

    BakedData

    Baked data.

    Declaration
    public CrowdData.Baked BakedData { get; }
    Property Value
    Type Description
    CrowdData.Baked
    | Improve this Doc View Source

    GizmosColor

    Cell color then drawing gizmos.

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

    Height

    Baked data height.

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

    HeightField

    Baked height field.

    Declaration
    public ReadOnlySpan<float> HeightField { get; }
    Property Value
    Type Description
    ReadOnlySpan<float>
    | Improve this Doc View Source

    Length

    Multiplication of width and height.

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

    MaxHeight

    Maximum height of cell.

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

    MaxSlope

    Maximum slope in degress.

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

    ObstacleField

    Baked obstacle field: Zero represents a non-occluded cell, a positive number indicates multiple occlusions on a single cell, and a negative number is invalid.

    Declaration
    public ReadOnlySpan<int> ObstacleField { get; }
    Property Value
    Type Description
    ReadOnlySpan<int>
    | Improve this Doc View Source

    Radius

    Radius of agent.

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

    Width

    Baked data width.

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

    Methods

    | Improve this Doc View Source

    BuildHeightFieldFromColliders(int, int, NonUniformTransform)

    Builds height field out of physics UnityEngine.Collider in the scene.

    Declaration
    public void BuildHeightFieldFromColliders(int width, int height, NonUniformTransform transform)
    Parameters
    Type Name Description
    int width
    int height
    NonUniformTransform transform
    | Improve this Doc View Source

    BuildHeightFieldFromCollidersWithRadius(int, int, NonUniformTransform)

    Builds height field out of physics UnityEngine.Collider in the scene with respect of agent radius.

    Declaration
    public void BuildHeightFieldFromCollidersWithRadius(int width, int height, NonUniformTransform transform)
    Parameters
    Type Name Description
    int width
    int height
    NonUniformTransform transform
    | 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

    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

    RecalculateObstacleField()

    Updates obstacle field from HeightFieldData. Make sure height field is updated before calling this method.

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

    SampleHeight(float2)

    Returns interpolated height at world space position.

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

    SetBakedData(in Baked)

    Sets new baked data. This can be used to bake it outside this class.

    Declaration
    public void SetBakedData(in CrowdData.Baked baked)
    Parameters
    Type Name Description
    CrowdData.Baked baked
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © ProjectDawn.
    Generated by DocFX