(HnF) VRC Udon Climbing Script
- Digital2,200 JPY

Here is the climbing script I developed for Yeet Party, isolated as its own prefab. This script will allow you to climb along any collider set to any layer that you spesify within the Wall Grab Layer. You can jump from surface to surface as well as fling yourself from surface to surface. There is also an optional stamina system with the optional ability to attach a HUD to show your stamina. This hud can be customized to your liking so long as it makes its changes based on a text field and the set parameter. To try out this script, you can see it in action in the fallowing worlds: Yeet Party: https://vrchat.com/home/world/wrld_e08e5177-2a7f-49c9-8d60-c7a99ca257af Speed Climbers: https://vrchat.com/home/world/wrld_f050e53a-2e5b-49a6-a018-dc37c50a4724 To install this script you will need Udon and Udon Sharp Get Udon Here: https://vrchat.com/home/download Get Udon Sharp Here: https://github.com/MerlinVR/UdonSharp/releases/ ===Notes=== -In desktop, you have a virtual head to the left and right of your viewpoint. Using left and right mouse click you will grip based on that side of the screen -The climbing does not use teleport, so you can fling yourself from a wall with enough force. -This script allows gripping onto moving objects so long as LHGrabPoint and RHGrabPoint transforms exist within the prefab.
Details
===Installing=== Drag the HnFClimbing_NoStamina or HnFClimbing_WithStamina prefab anywhere in your scene. Then set the settings on the prefab to your preferences. ===Parameters=== ---HnFClimbing--- -Is Enabled By Default: Sets if the climbing script will be on or off by default -Player Jump Height: sets how high a player can jump. If set to -1 it wont set the jump height. -Wall Jump Height: how far you can jump off a while while holding onto it. This will impulse you in the direction you are looking. This does not effect jump height. Desktop Grab Length: How far desktop reach is to grab a surface Max Momentum: Maximum speed a player can fling themselves -Wall Grab Layer: Layers selected will become grabbable layers. If you pick the player layer, you can climb players. -Stamina Bar(optional): spesified HnF_StminaBar HUD which can output the user's stamina -Use Stamina System: Enables the use of the stamina system, which limits how long the user can keep climbing before they plant their feet on the ground. -Max Stamina: Max value before user loses grip -Jump Stamina Cost: how much stamina is lost when jumping while climbing -Samina Lost Per Second: how fast the user will lose stamina while gripping a wall. -Stamina Regen Per Second: how fast user will regenerate their stamina while standing on ground -Stamina Bar(optional): spesified HnF_StminaBar HUD which can output the user's stamina ---Hnf_StaminaBar--- -Stamina Graphic Animator: Animator for stamina hud, required to set parameter for stamina -Animation Parameter: parameter name in the animator, this needs to be a float and will be set between 0.0-1.0 based on percentage of currentStamina / MaxStamina -Current Stamina_ouput: Text field to output the current stamina value -Max Stamina_output: Text field to output the max stamina value -Render On Left Hand: makes hud fallow the left hand instead of the right hand -Hand Offset VR: applys an xyz offset to where the hud renders around the hand in VR -Hand Offset Non VR: applys an xyz offset to where the hud renders around the hand in desktop ===Controls=== Control / VR Button / Desktop Button Grab Wall / Left/Right Trigger / Left/Right Click Jump / jump button / Space
Requirements
Udon World: https://vrchat.com/home/download
Update informations
[2021-05-19: v1.3] Release for booth. Adds stamina system along with various tweaks to desktop. Includes new input system. [2021-06-15: v1.4] Added the ability to climb players if you set the player layer on the WallGrabMask [2022-01-20: v1.5] Added parameter to use grips instead of the use button [2023-03-28: v1.6] Added a way to toggle the climbing on/off without needing to disable the gameobject [2023-06-07: v1.7.1] Fixed high framerate bugging out when keeping a grip on something/someone [2025-01-12: v1.8.0] Added IsEnabledByDefault, also optimized update loop and player scale calculation [2025-02-10: v1.8.1] Fixed momentum correction being set when not climbing