12345678910111213141516171819202122 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class SetKinectOrigin : MonoBehaviour {
- public Transform trackedOrigin;
- // Use this for initialization
- void Start () {
-
- }
-
- // Update is called once per frame
- void Update () {
- if(Input.GetKeyDown(KeyCode.Space)){
- Debug.Log ("Woop");
- transform.position = trackedOrigin.position;
- transform.rotation = trackedOrigin.rotation;
- }
- }
- }
|