Skip to main content

LocomotionModifierCheck

An abstract class in Root.Township, the global namespace.

Asset with rules for a LocomotionModifier area: what happens when a player enters or leaves, and where they may teleport. Examples are DepthCheckLocoCheck and EnterLocomotionCheck.

Constructors​

MemberWhat it is
protected LocomotionModifierCheck()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Methods​

MemberWhat it is
abstract void Enter(SmoothLocomotionPlayerController player, Bounds bounds)Called when a player enters the area.
abstract bool IsValidTeleportationPosition(Vector3 position, PlayerController player, Bounds bounds)Whether a player may teleport to this position inside the area.
abstract void Leave(SmoothLocomotionPlayerController player, Bounds bounds)Called when a player leaves the area.

Used in​

Members of other types that take, return or hold a LocomotionModifierCheck: