PNode.AnimateToMatrix Method 

Animate this node's matrix from its current values when the activity starts to the new values specified in the given matrix.

public virtual PTransformActivity AnimateToMatrix(
   PMatrix destMatrix,
   long duration


The final matrix value.
The amount of time that the animation should take.

Return Value

The newly scheduled activity


If this node descends from the root then the activity will be scheduled, else the returned activity should be scheduled manually. If two different transform activities are scheduled for the same node at the same time, they will both be applied to the node, but the last one scheduled will be applied last on each frame, so it will appear to have replaced the original. Generally you will not want to do that.

See Also

PNode Class | UMD.HCIL.Piccolo Namespace