Table of Contents

Create a swingable item with joints

You can use joints to connect objects containing RigidBody to create a VCI that behave like a rope or a door.

VCI supports Fixed Joint, Hinge Joint and Spring Joint.
For details of each parameter of these components, refer to Joint.

In this example, let's create a VCI with two cubes connected with a rope like structure

サンプルデータ

https://virtualcast.jp/products/05e4fa7a98ca1f8d579ab2ed8b8fe23e003bc6a9b02a91de01095dfe82306104

Unitypackage

tutorial_joint_v1_1.zip

Object configuration

The VCI we are going to create consists of three SubItems.
Please be aware that the connecting part in the middle is not synchronized.

Component setting

We do not use script this time.
Components for each objects are configured as below

Hint

You can make it behave like a pendulum by turning on “use Gravity” on blue_Cube.