No description
Find a file
JelleJurre 5a1de939a3
Merge pull request #14 from VRLabs/feat/update-pipeline
Add better release woorkflow
2024-12-04 21:40:09 +01:00
.github/workflows Add better release woorkflow 2024-11-15 15:03:05 +01:00
Instancer Add 2019 support for vcc 2024-03-06 11:41:05 +01:00
Media Loop webp 2024-02-19 18:02:46 +01:00
.gitignore Update .gitignore 2022-06-29 23:43:37 -04:00
Instancer.meta Add Instancer 2023-12-15 21:03:50 +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:57 -04:00
Media.meta Include media 2021-10-20 02:03:42 -04:00
package.json Update package json 2024-08-23 19:01:22 +02:00
package.json.meta Add package.json and new workflows 2023-12-15 19:18:28 +01:00
README.md Update README 2024-08-21 18:55:00 +02:00
README.md.meta re-include unreferenced asset meta files 2022-06-29 23:51:57 -04:00
World Constraint.prefab Automatic VRC Constraint Conversion 2024-08-10 14:02:31 +02:00
World Constraint.prefab.meta Add assets with some edits 2021-10-08 16:55:15 -04:00
World.prefab Add assets with some edits 2021-10-08 16:55:15 -04:00
World.prefab.meta Add assets with some edits 2021-10-08 16:55:15 -04:00

World Constraint

Generic badge Generic badge Generic badge Generic badge Generic badge

Generic badge Generic badge

A world-fixed object, held in place with a constraint

WorldConstraint

⬇️ Download Latest Version

📦 Add to VRChat Creator Companion


How it works

  • World Constraint uses World.prefab from the assets as a parent constraint source. World.prefab is not in the scene, so World Constraint will always stay at position 0, 0, 0.
  • The parent constraint on Container uses Reset Target as a source, which is used to bring Container to your avatar.

Install guide

https://github.com/VRLabs/World-Constraint/assets/76777936/464287a8-c43c-4cf0-bc6b-5ec700a3eb9b

  • Drag & drop the World Constraint 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 Reset Target
  • Move Reset Target outside of World Constraint and place it anywhere in your avatars hierarchy as needed.

Note

When building for Quest, you will have to remove unsupported components and shaders

How to use

  • Place the objects you want to leave in world space inside World Constraint -> Container.
    • Alternatively you can constrain the objects to Container.
  • Disable the Container parent constraint component to leave it in world space, and enable it to reset the Container to Reset Target.

Additional notes

  • By default, the Container and its contents will not scale with your avatar. If you want the Container and its contents to scale with your avatar, add a Scale Constraint to the Container object, set your avatar as the source, and activate it.
  • If your Reset Target is directly under your avatar, it won't properly rotate with you in full body.

Performance stats

Constraints:        3
Constraint Depth:   3

Hierarchy layout

World Constraint
|-Container
|  |-Cube
|-Reset Target

Contributors

License

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