BluWizard LABS - Dynamic VRC Floor Collider
Dynamic VRC Floor Collider
HOW IT WORKS
Using a VRC Constraint, it ensures that the attached PhysBone Collider (Plane) will remain on the Floor whenever you jump. This allows Tails to look more natural as you jump and move around the World.
REQUIREMENTS
- Latest VRChat Avatars SDK
3.7.0or newer. - VRCFury
1.980.0or newer.
INSTALL
- Add the BluWizard LABS VCC Repository.
- Add the VRCFury Repository, if you haven't already.
- Add the
BluWizard LABS - Dynamic VRC Floor ColliderPackage to your project. It will automatically add the latest version of VRCFury for you as well, since it's a vpmDependency. If necessary, this will also force an upgrade of the SDK to the minimum required version for this system to work. - Launch the Project. Then, select the Avatar in your Scene and do either of the following:
- Click
BluWizard LABS -> Add Dynamic Floor Collider to Avatarfrom the Unity Menu Bar. - OR
Right-Clickon the Avatar in your Hierarchy and clickBluWizard LABS -> Add Dynamic Floor Collider to Avatarfrom the context menu.
- Click
- The Prefab should be instantly added to your Avatar and will be pinged in the Editor for you to see where it is. A Debug Log message will also print into the Console indicating it was successfully added.
- If necessary, change the references for your existing Tail PhysBones, among others, to reference the
FloorPhysBone Collider inside the Prefab. It's located atDynamic VRC Floor -> VRC World Constraint -> Container -> Floorin the Hierarchy. - Upload and done! VRCFury will take care of the rest.
USAGE
The function is automatic! Whenever you "Jump" in-game, the VRChat Parameter Grounded will change to false, which triggers the Container to disable itself. This makes it lock the Floor Collider to where you jumped from. As it's Freezed on the Y-axis, the Floor Collider will only travel with you on the X and Z axis in Unity. The Animator was carefully designed to ensure it activates instantly so that there's no latency on each end.
It will continue to stay locked to the Ground until one of the following conditions are met:
- You land on the Ground again, triggering the
GroundedVRC Parameter to change back totrue. This will reset it's Axis to follow your Avatar again. - You begin falling down at an excess of 4 meters per second, which would be
VelocityY <= -4. If this happens, the Floor Collider will reset itself to follow your Avatar again (preventing your Tail from looking weird when falling).
Additionally, this Floor Collider adds a Toggle to your VRChat Menu. Find it under Blu's Add-ons/Floor Collider in your VRChat Menu.
Keywords
No keywords found.Install via VCC
Package ID
net.bluwizard.dynfloorUnity Version
2022.3Unity Release
undefinedVRChat Version
undefined