No description
Find a file
JelleJurre 7c8869f0cf
Merge pull request #16 from VRLabs/feat/update-pipeline
Add better release woorkflow
2024-12-04 21:41:25 +01:00
.github/workflows Add better release woorkflow 2024-11-15 15:06:00 +01:00
Instancer Add 2019 support for vcc 2024-03-06 11:41:20 +01:00
Media Loop webp 2024-02-19 18:03:11 +01:00
Resources Revert "Merge pull request #13 from VRLabs/dev" 2024-10-07 12:04:09 +02:00
.gitignore Update .gitignore 2022-06-29 23:43:15 -04:00
Instancer.meta Add Instancer 2023-12-15 21:06:20 +01:00
LICENSE Rename name in license 2023-11-27 12:43:04 +01:00
LICENSE.meta re-include unreferenced asset meta files 2022-06-29 23:51:25 -04:00
Media.meta Add setup video 2023-09-24 02:34:32 +02:00
package.json Update package json 2024-08-23 19:01:26 +02:00
package.json.meta added package.json and new workflow 2023-12-15 21:57:52 +01:00
README.md Revert "Merge pull request #13 from VRLabs/dev" 2024-10-07 12:04:09 +02:00
README.md.meta re-include unreferenced asset meta files 2022-06-29 23:51:25 -04:00
Resources.meta refactor for "IsMirror" parameter 2022-05-14 23:35:55 -04:00
World Physics FX.controller Revert "Merge pull request #13 from VRLabs/dev" 2024-10-07 12:04:09 +02:00
World Physics FX.controller.meta Initial cleanup 2023-08-09 17:41:57 +02:00
World Physics.prefab Revert "Merge pull request #13 from VRLabs/dev" 2024-10-07 12:04:09 +02:00
World Physics.prefab.meta Initial commit 2022-01-08 08:48:31 -05:00

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

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.