m ProbablePrime moved page CopyGlobalTransform (Component) to Component:CopyGlobalTransform: Creating component Namespace |
Automated: update Fields |
||
Line 14: | Line 14: | ||
== 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| | |_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 scale field of the slot that this component is added to. | ||
|_rotDrive| | |_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 scale field of the slot that this component is added to. | ||
}} | }} | ||
Revision as of 21:25, 3 March 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Introduction
The CopyGlobalTransform component is used to ensure that one object has the exact same global transform (position and rotation) as another object.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
Source
|
Slot | The object that serves as the transform reference. |
_posDrive
|
field drive of 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. |
_rotDrive
|
field drive of 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. |