I have been practicing transforming objects and ended up trying to do stuff with camera.
transform.Rotate(Vector3.right, 45, Space.World);
I'm grasping how to do the standard stuff like the above, but how to get the camera follow a complex path around an object or table ?
I've come across a class that uses objects to set waypoints. http://wiki.unity3d....line_Controller
This is my attempt, it doesn't work, but it doesn't crash, so I must be warm.
Wondering if it knows where the main camera is.
SplineController zeroidModel = GameObject.Find("Ornament11").AddComponent<SplineController>();
GameObject.Find("Cam1").transform.parent = zeroidModel.transform;
GameObject.Find("Cam2").transform.parent = zeroidModel.transform;
GameObject.Find("Cam3").transform.parent = zeroidModel.transform;
GameObject.Find("Cam4").transform.parent = zeroidModel.transform;
zeroidModel.SplineRoot = GameObject.Find("Ornament16");
zeroidModel.AutoStart = true;
There's any way to use classes outside of a script? I have just thrown in all 3 classes to the script to test.
Have I come across a look at translite method or similar? I'm sure there was one..
Edited by chepas, 19 July 2015 - 02:00 AM.




Top










are all trademarks of VPFORUMS.