BluWizard LABS - Dynamic VRC Floor Collider
Dynamic VRC Floor Collider
HOW IT WORKS
Using a VRC Raycast, 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.10.3or newer.
INSTALL
- Add the BluWizard LABS VCC Repository.
- Add the
BluWizard LABS - Dynamic VRC Floor ColliderPackage to your project. 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 -> Floorin the Hierarchy. - Upload and done!
USAGE
The function is automatic thanks to VRC Raycasting! Whenever you "Jump" in-game, the Raycast will move the Floor Collider's Transform to whichever position the Raycast hits in the World. This makes it lock the Floor Collider to where you jumped from. As it makes it look like it's locked to the Y-axis, the Floor Collider will only travel with you on the X and Z axis in Unity.
It will continue to stay attached to whichever collider the Raycast hits in the world unless the conditions are met:
- The Raycast sees no collider, which will make the Collider assume the floor is at the tip-end of the Raycast.
- The Floor Collider will be disabled when it detects no collider.
Additionally, if you use VRCFury, this Floor Collider adds a Toggle to your VRChat Menu. Find it under Blu's Add-ons/Floor Collider in your VRChat Menu. It does require VRCFury, but you can remove this yourself if you're not going to use it.
Keywords
No keywords found.Install via VCC
Package ID
net.bluwizard.dynfloorUnity Version
2022.3Unity Release
undefinedVRChat Version
undefined