Tween Interface
The following is an example of using method to create tween motions:
To avoid frequent updates to the transform data of nodes, Node
class is constructed with an internal dirty
state which only permits updating when modifications to the node’s transform data is called.
For instance, when attempting to execute this.node.position.x = 1
, the code only calls the for the position data and not the setter
for the dirty
state data to be updated, thus no transform data of the node will remain unchanged.