Exemplo n.º 1
0
    public override void Init()
    {
        RootRotation   = CreateRotationNode("dummyroot", new Vector3(0f, 0f, 0f), new Vector3(0f, 360f, 0f), 20f * C.IdleRotateSpeed);
        ActiveSpinNode = CreateRotationNode(C.ActiveSpinNode, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 360f), 360f);

        IdleWobbleNode      = FindChildRecursive(C.IdleWobbleNode);
        IdleWobbleLeftFoot  = FindChildRecursive(C.IdleWobbleLeftFoot);
        IdleWobbleRightFoot = FindChildRecursive(C.IdleWobbleRightFoot);

        ActiveRotateNodes = new RotateNode[C.ActiveRotateNode.Values.Count];
        for (int i = 0; i < ActiveRotateNodes.Length; ++i)
        {
            string nodeName = C.ActiveRotateNode.Values[i][0] as string;
            ActiveRotateNodes[i] = CreateRotationNode(nodeName, new Vector3(140f, 0f, 0f), new Vector3(220f, 0f, 0f), 100f);
        }
    }
Exemplo n.º 2
0
 public void Apply(RotateNode rotateNode)
 {
     _drawingContext.PushTransform(new RotateTransform(rotateNode.Angle));
 }
Exemplo n.º 3
0
 public void Apply(RotateNode rotateNode)
 {
     _canvas2DContext.RotateAsync(rotateNode.Angle);
 }