Component:CopyGlobalTransform

From Resonite Wiki
Revision as of 08:37, 25 December 2021 by imported>Psychpsyo (Wrote Article.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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 CopyGlobalScale component is used to ensure that one object has the exact same global transform (position and rotation) as another object.

Fields

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 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.
_rotDrive 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.

Usage

Examples

Related Components