Water Bouyancy Objects [VRChat]
- Digital300 JPY
![Water Bouyancy Objects [VRChat]](https://booth.pximg.net/dae74dcc-e12a-4d64-8230-d60666afb589/i/4619829/2e4fbb27-9265-4ea0-b013-7aa08d8958e7_base_resized.jpg)
![Water Bouyancy Objects [VRChat]](https://booth.pximg.net/dae74dcc-e12a-4d64-8230-d60666afb589/i/4619829/0b6cfc88-954b-4ca4-831f-7a0df4893ff7_base_resized.jpg)
![Water Bouyancy Objects [VRChat]](https://booth.pximg.net/dae74dcc-e12a-4d64-8230-d60666afb589/i/4619829/41947d77-e78d-41ea-9f2d-0d960a17a2c7_base_resized.jpg)
![Water Bouyancy Objects [VRChat]](https://booth.pximg.net/dae74dcc-e12a-4d64-8230-d60666afb589/i/4619829/c0b12631-2740-46f7-bbe8-400e06e40453_base_resized.jpg)
![Water Bouyancy Objects [VRChat]](https://booth.pximg.net/dae74dcc-e12a-4d64-8230-d60666afb589/i/4619829/da0c7f44-27b0-49a9-9d88-f004304b6615_base_resized.jpg)
🌊 Water Buoyancy Objects — Advanced Networked Buoyancy System (VRChat / UdonSharp) Turn any pool, lake, or slime pit into a realistic, fully networked buoyancy zone. Drop any Rigidbody into the trigger and it will float, stabilize, rotate naturally, and behave like a real object in a fluid — with owner-authoritative synchronization so everyone sees the same result. ✅ What this system does 🧱 Realistic Floating (4 Float Points) Every object that enters the water is automatically analyzed and given 4 buoyancy anchor points based on its Collider shape (Box, Sphere, Capsule, Mesh). This means flat objects like planks/doors settle flat instead of staying vertical. 🟣 Anchor spheres (debug gizmos) show exactly where buoyancy is applied ⚖️ Forces are applied using Archimedes-style buoyancy and distributed across 4 points 🧠 The system is stable and avoids “dancing” or constant bouncing 🧪 Physics-Based Buoyancy (Mass + Volume) Buoyancy is not a fake “up force”. It uses a density + volume estimate so objects behave differently depending on what they are: 🪶 Light objects rise faster and sit higher 🪨 Heavy objects sink deeper or can fully sink 📦 Larger objects displace more fluid and float better (as expected) 🍯 Viscosity (Slime / Honey / Thick Fluids) Want water? Slime? Honey? This system includes viscosity controls that affect how objects move and how “thick” the fluid feels: 🟠 Higher viscosity = more resistance (slow movement) 🟣 Optional viscosity-buoyancy factor = thick fluids can reduce floatiness 🧊 Perfect for slime pools, syrup, mud, goo, etc. 🎯 Stability + Anti-Jitter (No more bouncing) This script is designed to avoid common buoyancy problems: 🎚️ Submersion smoothing prevents rapid on/off buoyancy near the surface 🧲 Point damping uses per-point velocity to stop surface oscillation 🌊 Objects rise and settle into an equilibrium smoothly 🌐 Multiplayer Sync (Owner-Authoritative Buoyancy) 🔥 This is the key feature that makes it reliable in VRChat: 👑 One single simulator (the WaterBody Owner) The owner of the WaterBody (typically the instance Master) becomes the authority. Only this authority calculates buoyancy forces. 🔁 Auto-ownership transfer for floating objects When an object enters the water: ✅ The system checks if the object has VRCObjectSync 👑 The script forces ownership of the object to the WaterBody owner 💧 The WaterBody owner simulates buoyancy 📡 Everyone else receives the movement via VRChat networking 🖐️ Players can still pick up objects normally If a player grabs the object, they become the owner (normal VRChat behavior) When they drop it back into the water: 👑 ownership is automatically reclaimed by the WaterBody owner 🌊 buoyancy resumes consistently for everyone 🧠 Result: Everyone sees the same floating behavior No client-side desync. No “everyone sees different buoyancy”. Just one simulation, synced to all players. 🧰 Editor Quality-of-Life ✅ Custom Inspector UI (clean, organized, professional) 🧿 Debug gizmos: collider wire + 4 buoyancy anchor points 🔧 Auto setup on add: creates BoxCollider trigger + waterSurface reference automatically ⭐ Perfect for: 🏊 Pools / lakes / oceans in VRChat 🧪 Slime rooms / honey traps / goo pits 🎮 Physics-based minigames (floating props, debris, boats) 🧱 Realistic object behavior for immersion worlds If you want a high-quality buoyancy system that looks good, feels good, and stays synced in multiplayer, this is it. ✅





