Skip to content

Superbstingray/UdonPlayerPlatformHook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

UdonPlatformHook Licence Releases

Drag and Drop solution for making Players correctly follow moving colliders in the scene when standing on them. The prefab makes Players functionally behave as if they were parented to any collider they stand on.

How to use

  • Drag into the root of your scene and set your moving Objects/Platforms to layer 11(Environment) or a custom layer and assign layers in the scripts layer mask.
  • You only need to add one instance of the prefab to your scene.

Functionality / Features

  • Makes the Player move seamlessly with colliders.
  • Will correctly move and rotate the Player with colliders they stand on.
  • Behavior is enabled/disabled based on GameObject layers.
  • Correct physics/momentum when jumping off of moving colliders.
  • Ability to stop moving the player when they are accessing their menu(s)
  • Player will seamlessly teleport with colliders that get teleported / moved quickly.

Example

Typically the VRChat Player controller is unable to follow moving colliders and will remain stationary as colliders slide out from underneath it. With the prefab added to the scene, the Player will follow collider movement and Y euler axis rotation correctly.

PlatformHookExample.mp4

Overview of script component:

UPHUdon

Example World

Basic example setup can be found in this VRChat world: https://vrchat.com/home/world/wrld_6eaf7a85-ffcb-4765-a9b6-c7e435802079

Requirements