The '''PositionDeltaDriver''' component drives a field with a vector drawn from <code>Origin</code> to <code>Target</code> in global space transformed (optionally normalized) into space <code>VectorSpace</code>.
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Origin|TransformRelayRef|
|Origin|{{RootFieldType|TransformRelayRef}}|TypeAdv0=true| The Origin starting point for the vector, defaults to root if null.
|Target|TransformRelayRef|
|Target|{{RootFieldType|TransformRelayRef}}|TypeAdv1=true| The target for the vector. Defaults to root if null.
|LocalSpace|Slot|
|VectorSpace|{{RootFieldType|RootSpace}}|TypeAdv2=true| The coordinate space to calculate the vector result in for <code>Origin</code> and <code>Target</code>
|UseParentSpace|Bool|
|Normalized|Bool| Whether the vector from <code>Origin</code> to <code>Target</code> in <code>VectorSpace</code> should be normalized.
|OverrideRootSpace|RootSpace|
|Vector|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv4=true| The field to drive with the vector from <code>Origin</code> to <code>Target</code> in the coordinate space <code>VectorSpace</code>
|Normalized|Bool|
|Vector|IField`1|TypeString4=IField<float3>|
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Provide at least a <code>Target</code> slot and a value to drive for <code>Vector</code> to use this component.
Position Delta Driver component as seen in the Scene Inspector
The PositionDeltaDriver component drives a field with a vector drawn from Origin to Target in global space transformed (optionally normalized) into space VectorSpace.