Skip to main content

ISmoothLocomotionModifier

An interface in Root.Township, the global namespace.

Something that changes smooth locomotion, such as Climber. SmoothLocomotion.InitializeModifier hooks each member into its movement update. Base class SmoothLocomotionModifier.

Properties​

MemberWhat it is
bool CanOverrideMovement { get; }If true, the movement override and teleport block members are hooked up too.

Methods​

MemberWhat it is
void GetFrictionMultiplier(ref float friction)Adjusts the friction multiplier passed by reference.
void GetHeight(ref float height)Adjusts the body height passed by reference.
void GetUpwardGrip(ref float upwardGrip)Adjusts the upward grip passed by reference.
void IsBlockingTeleportation(ref bool isBlocking)Set the flag to true to block teleporting.
bool IsOverridingMovement()Whether this modifier is currently taking over movement.
void LocomotionUpdate()Called every fixed update of smooth locomotion.
bool MovementOverride()Runs the modifier's own movement in place of the normal one.

Used in​

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