Ridable Item component
Ridable Items allow you to create items that players can ride.
Ridable Items cannot be attached to Grabbable Items, Product Display Items, Interact Item Triggers.
property
property | function |
---|---|
Seat | Set the Transform that specifies the position and rotation of the riding avatar. If not set, Ridable Items will not work. |
Exit Transform | Set the Transform that specifies the position and rotation of the avatar when you get off. If not set, the position will not be specified when getting off. |
Left Grip | If set, the avatar’s left hand will be aligned with this Transform when it is not being operated. |
Right Grip | If set, the avatar’s right hand will be aligned with this Transform when it is not being operated. |
Avatar Override Animation | If set, the riding avatar will move with the specified animation. Of the specified animations, only the movements of the lower body, arms and hands are reflected. |
detail
At least one Collider component is required in the same hierarchy or as a child of the Ridable Item component to specify the range of objects that can be used.
Layers are automatically set on the GameObject to which this component is attached and on child GameObjects.