Ejemplo n.º 1
0
        public static void BuildMessage(InputTrackingMessage message)
        {
            GameObject origin = InstantiateNode.FindOrigin();

            message.cameraRotation   = origin.transform.Find("CameraHolder").transform.localEulerAngles;
            message.cameraPosition   = origin.transform.Find("CameraHolder").transform.localPosition;
            message.flyStickRotation = origin.transform.Find("Flystick").transform.localEulerAngles;
            message.flyStickPosition = origin.transform.Find("Flystick").transform.localPosition;
        }
Ejemplo n.º 2
0
        public static void ProcessMessage(InputTrackingMessage message)
        {
            GameObject origin = InstantiateNode.FindOrigin();

            if (origin != null)
            {
                origin.transform.Find("CameraHolder").transform.localEulerAngles = message.cameraRotation;
                origin.transform.Find("CameraHolder").transform.localPosition    = message.cameraPosition;
                origin.transform.Find("Flystick").transform.localEulerAngles     = message.flyStickRotation;
                origin.transform.Find("Flystick").transform.localPosition        = message.flyStickPosition;
            }
        }