Making a Prop in ChilloutVR
A prop is a useful thing in ChilloutVR, as one can spawn them independent of an avatar, and have them activate triggers based on inputs or collisions.
Here's how to start working on one.
Prerequisites
- Unity 2019.4.31f1
- ABI CCK >= 3.3
- Knowledge of how to import unitypackages, models, animations, and materials into a Unity project
Setting up the Project
- Create a Unity 2019.4.31f1 project.
- Import the ABI CCK.
- Import your prop and set it up like you would wish it to appear in-game.
- Make sure the prop is at origin (position 0,0,0, rotation 0,0,0, facing +z (along the blue axis of the position gizmo))
Adding CVR Prop Components
- Select the root of your prop.
- In the Inspector, click on Add Component.
- Select
CVR Spawnable
. - Adjust the properties as desired.
- Spawn Height is how high off the ground you wish the prop to spawn.
- Prop Usage lets you set who is able to grab the prop.