public readonly record struct CrowdAgentParamsWhat an agent is and how it moves.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Properties with initialisers rather than positional parameters with defaults: on a positional record struct, new CrowdAgentParams() resolves to the struct's parameterless constructor and zeroes everything, which would give an agent no radius and no speed while looking exactly like a request for the defaults.
Fields and properties (8)
public float RadiusHow wide it is. Should match what the mesh was baked for.
public float HeightHow tall it is. Used when looking for the polygon it is standing on.
public float MaxSpeedThe fastest it walks.
public float MaxAccelerationHow quickly it can change velocity.
public float ArrivalRadiusHow close to the destination counts as being there.
public float SlowdownRadiusHow far out it starts slowing down for the destination.
public float SeparationWeightHow hard it pushes out of an overlap with another agent. Avoidance is what stops overlaps happening; this is what recovers from the ones that happen anyway, in a doorway or a corner where there was no admissible velocity.
public bool AvoidanceEnabledWhether it steers around other agents at all.
Methods (1)
public CrowdAgentParams()A human-sized walker.
Used by (12)
- CrowdBenchmarksVixen.Benchmarks.Navigation
- AgentVixen.Navigation
- CrowdVixen.Navigation
- CrowdRetargetTestsVixen.Navigation.Tests
- CrowdTestsVixen.Navigation.Tests
- NavMeshDebugDrawVixen.Navigation
- NavMeshDebugDrawTestsVixen.Navigation.Tests
- NavPathQueueJobTestsVixen.Navigation.Tests
- NavPathQueueTestsVixen.Navigation.Tests
- NavigationAllocationTestsVixen.Navigation.Tests
- NavigationSystemVixen.Navigation
- OffMeshConnectionTestsVixen.Navigation.Tests