Uhro Sharp 3D mit der Hololens

Uhro Sharp 3D mit der Hololens

Grundlegender Aufbau:

using System;
using Windows.ApplicationModel.Core;
using Urho;
using Urho.Actions;
using Urho.HoloLens;

namespace Basic
{
	internal class Program
	{
		[MTAThread]
		static void Main() => CoreApplication.Run(
			new UrhoAppViewSource(
				new ApplicationOptions("Data")));
	}

	public class BasicApp: HoloApplication
	{
		Node aNode;

		public BasicApp(ApplicationOptions opts) : base(opts) { }

		protected override void Start()
		{
			//Basic Operation
			base.Start();

			//Nodecreation
			aNode = Scene.CreateChild();
			aNode.Position = new Vector3(0, 0, 1); 
			aNode.SetScale(1.0f);

			
			var aVar= aNode.CreateComponent; // or RigidBody/Geometry(Sphere,Cube etc)
         
			aVar.SetMaterial(material);

			// Run actions
			aVar.RunActions(new RotateBy(duration: 1f, deltaAngleX: 1, deltaAngleY: 0, deltaAngleZ: 0));
		}

		
	}
}