logoRemuria

World Physics

1.3.7 Public
<div align="center">

World Physics

Generic badge Generic badge Generic badge Generic badge Generic badge

Generic badge Generic badge

Easy fix for Physics components behaving weirdly in world space

WorldPhysics

⬇️ Download Latest Version

📦 Add to VRChat Creator Companion

</div>

How it works

  • By turning off colliders on the mirror clone we can prevent them from colliding with the player.
  • By using an animated fixed joint we can prevent incorrect movement of rigidbodies under world constraints for remote players.

Install guide

https://github.com/VRLabs/World-Physics/assets/76777936/670ed186-a9b0-45af-8f54-a1adb4ec8541

  • Merge the Animator Controller World Physics FX to your own FX Controller, using the Avatars 3.0 Manager tool.
  • Drag & drop the World Physics prefab into the base of your Hierarchy.
  • Right click and unpack the prefab, then drag & drop it onto your avatar.
  • Expand the prefab hierarchy and find World Physics Target
  • Move World Physics Target outside of World Physics and place it anywhere in your avatars hierarchy as needed.
    • For the demo, lift the World Physics Target position on the Y axis, so there is room for the cube to fall.

How to use

  • This package is intended for leaning how these fixes work so you can apply them to your own systems. It is set up for a physics demo where cube falls and collides with the world.
  • Unity physics are complex and making things work as you intend beyond these fixes is your responsibility.

Performance stats

Colliders:          1
Constraints:        2
Constraint Depth:   2
FX Animator Layers: 2
Rigidbodies:        2

Hierarchy layout

World Physics
|-Rigidbody
|  |-Collider
|  |-Cube
|-World Physics Target

Contributors

License

World Physics is available as-is under MIT. For more information see LICENSE.

<div align="center">

<img src="https://github.com/VRLabs/Resources/raw/main/Icons/VRLabs.png" width="50" height="50"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png" width="10"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Discord.png" width="50" height="50"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png" width="10"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Patreon.png" width="50" height="50"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png" width="10"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Twitter.png" width="50" height="50">

</div>

Keywords

No keywords found.

Install via VCC

Package ID

dev.vrlabs.world-physics

Unity Version

2022.3

Unity Release

undefined

VRChat Version

undefined

Author

License

MIT

Documentation URL

undefined

Changelog URL

undefined