Skip to main content

Interface IWalkable

Allows the run-speed pawn to be throttled down to a walk, letting player input or scenario scripts reduce pedestrian speed without a separate speed-override mechanism.

public interface IWalkable

Remarks​

Walking speed is defined on the concrete pawn and is a fraction of its normal run speed. The interface takes a boolean rather than a continuous multiplier because the study only needs two discrete movement states: the participant either holds the walk modifier or they do not. This keeps the input mapping in PlayerPedestrianDriver simple.

Methods​

Walk(bool)​

Sets whether the entity should walk instead of run.

void Walk(bool input)

Parameters​

NameTypeDescription
inputboolIf true, the entity will walk; otherwise, it will run.