mirror of
https://github.com/VRLabs/World-Physics.git
synced 2026-06-06 00:36:22 +00:00
No description
|
|
||
|---|---|---|
| .github/workflows | ||
| Instancer | ||
| Media | ||
| Resources | ||
| .gitignore | ||
| Instancer.meta | ||
| LICENSE | ||
| LICENSE.meta | ||
| Media.meta | ||
| package.json | ||
| package.json.meta | ||
| README.md | ||
| README.md.meta | ||
| Resources.meta | ||
| World Physics FX.controller | ||
| World Physics FX.controller.meta | ||
| World Physics.prefab | ||
| World Physics.prefab.meta | ||
World Physics
Easy fix for Physics components behaving weirdly in world space
⬇️ Download Latest Version
📦 Add to VRChat Creator Companion
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 FXto your own FX Controller, using the Avatars 3.0 Manager tool. - Drag & drop the
World Physicsprefab 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 Targetoutside ofWorld Physicsand place it anywhere in your avatars hierarchy as needed.- For the demo, lift the
World Physics Targetposition on the Y axis, so there is room for the cube to fall.
- For the demo, lift the
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.