コード例 #1
0
ファイル: RotateBy.cs プロジェクト: Zamir7/urho
		public RotateByState (RotateBy action, Node target)
			: base (action, target)
		{ 
			AngleX = action.AngleX;
			AngleY = action.AngleY;
			AngleZ = action.AngleZ;
			StartAngles = target.Rotation;
		}
コード例 #2
0
ファイル: RotateBy.cs プロジェクト: yrest/urho
 public RotateByState(RotateBy action, Node target)
     : base(action, target)
 {
     AngleX      = action.AngleX;
     AngleY      = action.AngleY;
     AngleZ      = action.AngleZ;
     StartAngles = target.Rotation;
 }
コード例 #3
0
ファイル: UrhoApp.cs プロジェクト: cianmulville/urho-samples
		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)));
		}