Skip to main content

RVOBlockedOperation

A class in Root.Township, Alta.Intelligence.

Prefab scoring component that adds an RVOBlockedValue rule: one value when the creature's walker is blocked, another when it isn't.

Constructors​

MemberWhat it is
RVOBlockedOperation()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

3 private and internal fields
MemberWhat it is
private float blockedValue when the walker is blocked (default 0).
private float multiplierWeight of the rule. Only matters for preferred rules.
private float unblockedValue when it isn't blocked (default 1).

Methods​

MemberWhat it is
override TargetOperation GetOperation()Makes the rule, weighted by multiplier.
protected override string GetName()Builds the GameObject name, like RVO Blocked 1 -> 0 (x1).