Vixen
02b45cc4
csharp
public readonly record struct CrowdAgentParams

What 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 Radius

    How wide it is. Should match what the mesh was baked for.

  • public float Height

    How tall it is. Used when looking for the polygon it is standing on.

  • public float MaxSpeed

    The fastest it walks.

  • public float MaxAcceleration

    How quickly it can change velocity.

  • public float ArrivalRadius

    How close to the destination counts as being there.

  • public float SlowdownRadius

    How far out it starts slowing down for the destination.

  • public float SeparationWeight

    How 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 AvoidanceEnabled

    Whether 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