Class CrowdData
Crowd data used for initializing topographical surface data.
Inheritance
Object
ScriptableObject
CrowdData
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, 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<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
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
Declaration
public CrowdData.Baked BakedData { get; }
Property Value
|
Improve this Doc
View Source
GizmosColor
Cell color then drawing gizmos.
Declaration
public Color GizmosColor { get; }
Property Value
|
Improve this Doc
View Source
Height
Declaration
public int Height { get; }
Property Value
|
Improve this Doc
View Source
HeightField
Declaration
public ReadOnlySpan<float> HeightField { get; }
Property Value
|
Improve this Doc
View Source
Length
Multiplication of width and height.
Declaration
public int Length { get; }
Property Value
|
Improve this Doc
View Source
MaxHeight
Declaration
public float MaxHeight { get; }
Property Value
|
Improve this Doc
View Source
MaxSlope
Maximum slope in degress.
Declaration
public float MaxSlope { get; }
Property Value
|
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
|
Improve this Doc
View Source
Radius
Declaration
public float Radius { get; }
Property Value
|
Improve this Doc
View Source
Width
Declaration
public int Width { get; }
Property Value
Methods
|
Improve this Doc
View Source
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
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)
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
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
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
|
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