Difference between revisions of "Unity Products:Amplify Shader Editor/Rotator"

From Amplify Creations Wiki
Jump to: navigation, search
(Rotator Node)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
 +
 
== Rotator Node ==
 
== Rotator Node ==
'''UNDER CONSTRUCTION'''
 
 
The Rotator node rotates a UV or other Vector 2 by a value of Time from an Anchor
 
  
 +
The Rotator node rotates a UV or other Vector 2 position by an angular value of [[#paramTime|Time]] from an [[#paramAnchor|Anchor]] point.
 +
If no input is set on [[#paramTimePort|Time]] input port then Unity timer is used to continuously increment an internal angular value and provide a rotation animation. On this case, the Time property acts as a multiplier over the Unity timer value.<br/>
 +
On the other hand, if a connection is made on the Time input port then it will assume that value as the final one and do not use any kind of timer internally.
  
<!--<img class="responsive-img" src="http://amplify.pt/NodeDetail/LerpNode.jpg"> -->
+
<img class="responsive-img" src="http://amplify.pt/NodeDetail/RotatorNode.gif">
 +
<br/><font size="1">Nodes used:
 +
[[Unity_Products:Amplify_Shader_Editor/Texture_Coordinates|Texture Coordinates]],
 +
[[Unity_Products:Amplify_Shader_Editor/Vector2|Vector2]],
 +
[[Unity_Products:Amplify_Shader_Editor/Time|Time]],
 +
[[Unity_Products:Amplify_Shader_Editor/Rotator|Rotator]],
 +
[[Unity_Products:Amplify_Shader_Editor/Texture_Sample|Texture Sample]]
 +
</font>
  
 
{| class="wikitable" style="width: 100%;"
 
{| class="wikitable" style="width: 100%;"
Line 12: Line 21:
 
|- style="background: #e5e5e5;" |
 
|- style="background: #e5e5e5;" |
 
| id="paramUV" | UV
 
| id="paramUV" | UV
|  
+
| Point to be rotated. Only visible if the respective input port is not connected.
 
| 0,0
 
| 0,0
 
|- style="background: #e5e5e5;" |
 
|- style="background: #e5e5e5;" |
 
| id="paramAnchor" | Anchor  
 
| id="paramAnchor" | Anchor  
|  
+
| Anchor point to be used on rotation. Only visible if the respective input port is not connected.
 
| 0,0
 
| 0,0
 
|- style="background: #e5e5e5;" |
 
|- style="background: #e5e5e5;" |
 
|id="paramTime" | Time   
 
|id="paramTime" | Time   
|  
+
| Time multiplier, allows to scale Unity internal timer. Only visible if the respective input port is not connected.
 
| 0
 
| 0
 
|}
 
|}
Line 30: Line 39:
 
|-  
 
|-  
 
| UV
 
| UV
|  
+
| Point to be rotated.
 
| Vector 2
 
| Vector 2
 
|-  
 
|-  
 
| Anchor
 
| Anchor
|  
+
| Anchor point to be used on rotation.
 
| Vector 2
 
| Vector 2
 
|-
 
|-
| Time
+
| id="paramTimePort" | Time
|  
+
| Angle of rotation in radians to be applied to the specified point.
 
| Float
 
| Float
 
|}
 
|}

Latest revision as of 18:01, 24 October 2017

Back to Node List

Rotator Node

The Rotator node rotates a UV or other Vector 2 position by an angular value of Time from an Anchor point. If no input is set on Time input port then Unity timer is used to continuously increment an internal angular value and provide a rotation animation. On this case, the Time property acts as a multiplier over the Unity timer value.
On the other hand, if a connection is made on the Time input port then it will assume that value as the final one and do not use any kind of timer internally.


Nodes used: Texture Coordinates, Vector2, Time, Rotator, Texture Sample

Node Parameter Description Default Value
UV Point to be rotated. Only visible if the respective input port is not connected. 0,0
Anchor Anchor point to be used on rotation. Only visible if the respective input port is not connected. 0,0
Time Time multiplier, allows to scale Unity internal timer. Only visible if the respective input port is not connected. 0


Input Port Description Type
UV Point to be rotated. Vector 2
Anchor Anchor point to be used on rotation. Vector 2
Time Angle of rotation in radians to be applied to the specified point. Float


Back to Node List