StretchBetween

Summary

This behaviour will stretch the containing asset to fill the gap inbetween two other assets.

Parameters

Origin

Type: Text Default: None

The Name or ARDI ID of the first asset to stretch between.

Target

Type: Text Default: None

The Name or ARDI ID of the second asset to stretch between.

OriginOffset

Type: Vector3 Default: 0,0,0

This parameter allows you to define a positional offset to the Origin asset. Position is entered in X,Y,Z coordinates local to the Origin asset.

TargetOffset

Type: Vector3 Default: 0,0,0

This parameter allows you to define a positional offset to the Target asset. Position is entered in X,Y,Z coordinates local to the Target asset.

Examples

<stretchbetween origin="WallA" target="WallB" />
The above code will find the two assets in the scene named WallA and WallB. It will then place the asset containing this behaviour in between the WallA and WallB and stretch it to fill the gap between them.
<stretchbetween origin="FenceStartPoint" target="FenceEndPoint" originoffset="0,5,0" targetoffset="0,5,0"/>
In this example we are using two empty assets that are aligned on the ground named FenceStartPoint and FenceEndPoint respectively. In order to show the fence positioned above ground, the origin and target offset values are set to 0,5,0 to shift the stretched fence asset 5 units upwards on the Y axis.