Skip to content

Set Local Player Speed ​

PlayersPlayer.SetSpeed

Walk / run / strafe speed and jump impulse of the local player.

Changes the walk, run and strafe speeds and jump strength of the player on whose screen it runs. The defaults for walk, run and strafe (2, 4, 2) are VRChat's own, and jump 3 is what the VRCWorld prefab sets; jump 0 means no jumping.

To change speeds for the whole world, put it in Start: it then runs on each joining player's screen.

VRChat suggests working ranges of about 0 to 5 for walk and strafe, and about 0 to 10 for run and jump. Keep run above walk. Running doesn't speed up strafing, so strafe is best set to the same as walk.

Only your own speeds change; other players' speeds can't be set.

Official docs: Player Forces (VRChat)

Settings

NameTypeDefault
WalkNumber2
RunNumber4
StrafeNumber2
JumpNumber3

On a card

WhenInteract⋯
What to do
Set Local Player Speed⋯
Walk2
Run4
Strafe2
Jump3
+ Add what to do

In Udon

Roughly this code, once per target ({ } are the settings):

Networking.LocalPlayer.SetWalkSpeed({walk}); Networking.LocalPlayer.SetRunSpeed({run}); Networking.LocalPlayer.SetStrafeSpeed({strafe}); Networking.LocalPlayer.SetJumpImpulse({jump});

In the same category