The CopyGlobalTransform component is used to ensure that one object has the exact same global transform (position and rotation) as another object.
The CopyGlobalScale component is used to ensure that one object has the exact same global transform (position and rotation) as another object.
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Source|Slot| The object that serves as the transform reference.
|Source|Slot| The object that serves as the transform reference.
|_posDrive|IField`1|TypeString1=IField<float3>| The field that is driven to match the global position of the source. This automatically gets populated with the scale field of the slot that this component is added to.
|_posDrive|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv1=true| The field that is driven to match the global position of the source. This automatically gets populated with the position field of the slot that this component is added to.
|_rotDrive|IField`1|TypeString2=IField<floatQ>| The field that is driven to match the global rotation of the source. This automatically gets populated with the scale field of the slot that this component is added to.
|_rotDrive|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv2=true| The field that is driven to match the global rotation of the source. This automatically gets populated with the rotation field of the slot that this component is added to.
}}
}}
Line 29:
Line 28:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Copy Global Transform]]
[[Category:Components{{#translation:}}|Copy Global Transform]]
[[Category:Components:Transform:Drivers{{#translation:}}|Copy Global Transform]]
[[Category:Components:Transform:Drivers{{#translation:}}|Copy Global Transform]]
Latest revision as of 21:40, 15 October 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Copy Global Transform component as seen in the Scene Inspector
The CopyGlobalTransform component is used to ensure that one object has the exact same global transform (position and rotation) as another object.
The field that is driven to match the global position of the source. This automatically gets populated with the position field of the slot that this component is added to.
The field that is driven to match the global rotation of the source. This automatically gets populated with the rotation field of the slot that this component is added to.