GMU:Tutorials/Networking/Controlling the Camera in Unity with The Captury

From Medien Wiki
< GMU:Tutorials
Revision as of 21:30, 30 July 2016 by Junyuan WU (talk | contribs) (CONTROLLING THE CAMERA IN UNITY WITH THE CAPTURY)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

1.open unity and create a new Unity project. Unity.jpg 2. create a simple Unity scene.

For the purposes of this tutorial, it is recommended to creating a simple plane and shape objects. here I create a cube and a sphere. File:2.1 File:2.2 3. add component to camera File:3.1 select camera in hierarchy,single click it. File:3.2 click the right of table to add component to the camera. File:3.3 select a new script File:3.4 enter a name for this script File:3.5 double click the script in Assets,then you will get a script widow, you can write code in it. 4.write the code. this code is for camera, then create a gameobject, this gameobject is the cube, the capture system will send the position of the root bone to the cube, then the script will make the camera follow the cube. File:4.1 5.set the data related to the capture system. File:5.1 Then in the right table, you can set the remote IP and the port of the main computer.