FloatZone
NOTE: This setup assumes a 'space suit' mechanic that relies on jets to propel yourself. You might prefer something that only relies on pushing forward or pulling a trigger to move. In that case, I'd suggest Hirabiki's Swim System or Mattshark89's OpenFlight.
I put together an Udon graph that lets you adjust gravity in trigger volumes. You can use any type of collider so long as it's a trigger.
This prefab requires VRCSDK3 for Worlds and Unity.
Always reference the VRChat docs for the latest requirements.
https://unity3d.com/get-unity/download/archive
https://vrchat.com/home/download
How does it work?
Add the PlayerTriggerChangeGravity
behavior to a collider that's set to trigger, then fill in values for gravity, jet velocity and your default jump value.
The thrust object is optional, but required if you want to use jets to navigate while inside the trigger. On jump, you'll thrust relative to the ThrustObject
orientation. If you add an Audio Source
to the trigger, it will play that sound when you thrust. JetVelocityMultiplier
controls how much of a boost you'll get, and JetDelay
limits how often you can use the jets. Your ThrustObject
can be a visible pickup, or you can use an empty object and check LinkToView
to lock it to your view direction.
Support:
You can contact me via discord.mdcr.tv