On Update
Introduction
An 'On Update' event node is an animation node which will trigger an output event in every frame that a scene renders. The output value is recorded in delta seconds and it is the amount of time passed since the last frame. This allows control of time to trigger animations and control the advancements in every frame.
Example
Control the Animation 'Rotate' using the 'on update' animation event node. Also learn how to apply math logic, vectors and control the time frame by delta seconds for the animation.
Follow the steps below:
Nodes:
Add 'On update' event node on to the Design Canvas. Right-click on the Design Canvas, Navigate to Create>Animation/Time>On Update
Add 'Rotate' action node and connect the 'Car' object node to the 'Rotate' action node. Right-click on the Design Canvas, Navigate to Create> Move, Rotate,Scale>Rotate
Add 'Multiply' action node. Right-click on the Design Canvas, Navigate to Create>Math>Multiply
Add 'Vector' node 'Create from XYZ'. Right-click on the Design Canvas, Navigate to Create>Vector3>Create from XYZ A vector is a bundle of X,Y and Z axis where you can determine the values of the axis and this can be controlled by using a single connector line to an output action.
Connections:
Connect the 'Car' object node to 'Rotate' action node
Connect the 'On Update' output node to the 'Start' input on the 'Rotate' action node
Output:
The 'Car' object rotates along the Y axis at a frame rate of 90 frames per second.
Preview
With the above, you can apply animations with a procedure instead of stacking them on the animation timeline.
Last updated