ProtoFlux:Global Transform: Difference between revisions

From Resonite Wiki
added Global Transform ProtoFlux Page
 
Shorten description
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
|}}
|}}


Global transform is a ProtoFlux node that gives the transform values for a slot as if it were in the same place visually but parented under the root. Another way to think of this is the slot's position relative to 0,0,0 in the world instead of what's underneath.
The <code>Global Transform</code> node outputs the position, rotation and scale of the input slot in [[Coordinate_spaces#Global_vs._Local|global coordinate space]], i.e. the slot's transform relative to the world root slot.
 
see [[Coordinate spaces]] for an in depth explanation on coordinate spaces.


== Inputs ==
== Inputs ==


=== * ([[Slot]]) ===
=== * ([[Slot]]) ===
The slot to read a global transform from
The slot whose global transform is output.


== Outputs ==
== Outputs ==


=== Position ([[Type:Float3|Float3]]) ===
=== Position ([[Type:Float3|Float3]]) ===
The global position of the provided * ([[Slot]])
The global position of the provided * ([[Slot]]).


=== Position ([[Type:FloatQ|FloatQ]]) ===
=== Rotation ([[Type:FloatQ|FloatQ]]) ===
The global rotation of the provided * ([[Slot]])
The global rotation of the provided * ([[Slot]]).


=== Scale ([[Type:Float3|Float3]]) ===
=== Scale ([[Type:Float3|Float3]]) ===
The global scale of the provided * ([[Slot]])
The global scale of the provided * ([[Slot]]).


== Examples ==
== Examples ==

Latest revision as of 04:55, 23 May 2024

Global Transform
*
Position
Rotation
Scale
Transform

The Global Transform node outputs the position, rotation and scale of the input slot in global coordinate space, i.e. the slot's transform relative to the world root slot.

Inputs

* (Slot)

The slot whose global transform is output.

Outputs

Position (Float3)

The global position of the provided * (Slot).

Rotation (FloatQ)

The global rotation of the provided * (Slot).

Scale (Float3)

The global scale of the provided * (Slot).

Examples