ProtoFlux:Local Transform: Difference between revisions

From Resonite Wiki
fix page to have content
Shorten description
 
Line 14: Line 14:
|}}
|}}


Local transform is a ProtoFlux node that gives the values for the location, rotation, and scale fields of a [[Slot|Slot]].
The <code>Local Transform</code> node outputs the position, rotation and scale of the input slot in [[Coordinate_spaces#Global_vs._Local|local coordinate space]], i.e. the slot's transform relative to its parent slot.
 
see [[Coordinate spaces]] for an in depth explanation on coordinate spaces.


== Inputs ==
== Inputs ==


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


== Outputs ==
== Outputs ==


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


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


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


== Examples ==
== Examples ==

Latest revision as of 04:57, 23 May 2024

Local Transform
*
Position
Rotation
Scale
Transform

The Local Transform node outputs the position, rotation and scale of the input slot in local coordinate space, i.e. the slot's transform relative to its parent slot.

Inputs

* (Slot)

The slot whose local transform is output.

Outputs

Position (Float3)

The local position of the provided * (Slot).

Rotation (FloatQ)

The local rotation of the provided * (Slot).

Scale (Float3)

The local scale of the provided * (Slot).

Examples