Ejemplo n.º 1
0
		public RotateByState (RotateBy action, Node target)
			: base (action, target)
		{ 
			AngleX = action.AngleX;
			AngleY = action.AngleY;
			AngleZ = action.AngleZ;
			StartAngles = target.Rotation;
		}
Ejemplo n.º 2
0
 public RotateByState(RotateBy action, Node target)
     : base(action, target)
 {
     AngleX      = action.AngleX;
     AngleY      = action.AngleY;
     AngleZ      = action.AngleZ;
     StartAngles = target.Rotation;
 }
Ejemplo n.º 3
0
		public async void Rotate()
		{
			if (planeNode == null)//not created yet
				return;
			var moveAction = new MoveBy(1f, new Vector3(0, 0, 5));
			var rotateAction = new RotateBy(duration: 1, deltaAngleX: 0, deltaAngleY: 90, deltaAngleZ: 20);
			//planeNode.GetComponent<StaticModel>().Model = CoreAssets.Models.Sphere;
			//planeNode.SetScale(7f);
			await planeNode.RunActionsAsync(new Urho.Actions.Parallel(moveAction, rotateAction));
			await planeNode.RunActionsAsync(new RepeatForever(new RotateBy(duration: 1, deltaAngleX: 0, deltaAngleY: 90, deltaAngleZ: 0)));
		}