Skip to main content

Class TrafficBehaviour.ContactStruct

Serialisable distance thresholds that govern when an actor begins decelerating and when it comes to a full stop relative to a detected obstacle.

[Serializable]
protected class TrafficBehaviour.ContactStruct

Inheritance​

Derived​

TrafficBehaviour.StoplineContactStruct

Fields​

keepDistance​

Distance from an obstacle at which the actor begins decelerating.

[Tooltip("The distance to maintain between this and another object before slowing down.")]
public float keepDistance

Field Value​

float

stopDistance​

Distance from an obstacle at which the actor stops completely.

[Tooltip("The distance at which to stop to avoid a collision.")]
public float stopDistance

Field Value​

float

  • Fields
    • keepDistance
    • stopDistance