Component:Long2ToLong4SwizzleDriver: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
template this. I am insane for not automating this.
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
|Name=Long 2To Long 4Swizzle Driver
|Name=Long 2To Long 4Swizzle Driver
}}
}}
{{stub}}
{{Template:SwizzleDriverDescription|long|2|long|4}}


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Source|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<[[Type:Long2|Long2]]>}}|TypeAdv0=true|
|Source|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<[[Type:Long2|Long2]]>}}|TypeAdv0=true| {{Template:SwizzleDriverSource}}
|Target|{{RootFieldType|FieldDrive`1|[[Type:Long4|Long4]]}}|TypeAdv1=true|
|Target|{{RootFieldType|FieldDrive`1|[[Type:Long4|Long4]]}}|TypeAdv1=true| {{Template:SwizzleDriverTarget}}
|X|Int|
|X|Int| {{Template:SwizzleDriverFieldDesc|X}}
|Y|Int|
|Y|Int| {{Template:SwizzleDriverFieldDesc|Y}}
|Z|Int|
|Z|Int| {{Template:SwizzleDriverFieldDesc|Z}}
|W|Int|
|W|Int| {{Template:SwizzleDriverFieldDesc|W}}
}}
}}


Line 23: Line 23:
[[Category:Components:Relations:Swizzle Drivers{{#translation:}}|Long 2To Long 4Swizzle Driver]]
[[Category:Components:Relations:Swizzle Drivers{{#translation:}}|Long 2To Long 4Swizzle Driver]]
[[Category:Components{{#translation:}}|Long 2To Long 4Swizzle Driver]]
[[Category:Components{{#translation:}}|Long 2To Long 4Swizzle Driver]]
[[Category:ComponentStubs]]

Latest revision as of 01:03, 15 October 2024

Component image 
Long 2To Long 4Swizzle Driver component as seen in the Scene Inspector

Swizzle drivers are a type of component that allow for taking the components of a packed value (packed 3 or 4s) and rearrange them into the output. The different packed channels are numbered 0->2 for pack 3's and 0->3 for pack 4's. When driving the output, you have a choice of taking any channel within the pack 3 or 4 by number and driving an output channel with said source number. This can be used to flip axes, zero them out by using -1 as a source channel, or rearrange them. For example, making a 3d point move only on the y axis position of another point (-1, 1, -1).

Usage

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 direct RelayRef`1<IField`1<Long2>> The field which to take values from it's components and drive Target's components with them.
Target field drive of Long4 The field which to drive the components of.
X Int Takes the n'th component from Source and drives the X component of Target with it.
Y Int Takes the n'th component from Source and drives the Y component of Target with it.
Z Int Takes the n'th component from Source and drives the Z component of Target with it.
W Int Takes the n'th component from Source and drives the W component of Target with it.

Behavior

Examples

See Also