Guides:World constraint: Difference between revisions

From VRChat Wiki
(Page Creation)
 
(banner/category added)
Line 1: Line 1:
{{Noticebox/Community}}
World constraints allow for constraints to follow a specific point in world space. Mainly used on Avatars to lock a object to the world and not follow the avatar. This works by referencing a prefab in your assets instead of a Gameobject in the hierarchy.  
World constraints allow for constraints to follow a specific point in world space. Mainly used on Avatars to lock a object to the world and not follow the avatar. This works by referencing a prefab in your assets instead of a Gameobject in the hierarchy.  


Line 7: Line 9:


The prefabs transform can be changed and the constraint will follow what ever its set too.
The prefabs transform can be changed and the constraint will follow what ever its set too.
[[Category:Guides]]

Revision as of 22:17, 31 October 2024

IconOnly CL Portal.png
V · ECommunity-written content
The following was created by the community. It may contain material not directly endorsed by the VRChat team. To learn more, consider reading Contributing to the VRChat Wiki.

World constraints allow for constraints to follow a specific point in world space. Mainly used on Avatars to lock a object to the world and not follow the avatar. This works by referencing a prefab in your assets instead of a Gameobject in the hierarchy.

Before VRC Constrains were added with the "Freeze To World" option this was the method used to freeze things to the world.

Setup

To setup you need a prefab in your assets you can reference. Its suggested the prefab to be a empty Gameobject, don't need anything else on it. Then drag and drop the prefab from your assets to one of your constraints sources.

The prefabs transform can be changed and the constraint will follow what ever its set too.