Skip to main content

VelocityLimitOperation

A class in Root.Township, Alta.Intelligence.

Prefab scoring component that adds a VelocityLimit rule on the creature's speed.

Constructors​

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

Fields​

4 private and internal fields
MemberWhat it is
private float maximimumVelocitySquaredThe speed limit, squared (default 1). The inspector shows it unsquared.
private float multiplierWeight of the rule. Only matters for preferred rules.
private float outsideLimitValueValue at or above the limit (default 0).
private float withinLimitValueValue below the limit (default 1).

Methods​

MemberWhat it is
override TargetOperation GetOperation()Makes the VelocityLimit rule, weighted by multiplier.
protected override string GetName()Builds the GameObject name, like Velocity < 1 ? 1 : 0 (x1).