How would I proceduraly duplicate an existing object in the scene and apply procedural animation to it using just math. I would like for this to be done in c# if possible. but if its easier or someone has a solution for it in another language I'm completely open to it.
If anyone is able to supply a solution feel free to make it super simple.
I have a sphere in the scene and I want to proceduraly duplicate and apply animation to that referenced sphere. The animation itself would be moving the sphere from a random starting point within a 10x10 grid, to its ending point which would be 10 units up(Z-axis) over the course of a half a second. I really hope this is a possible think and that guys can help me out.
It is very easy to copy any object. Use UnityEngine.Object.Instantiate
You can also procedurally move things around very easily in unity: "GameObject.transform.position = someVector3;" You can change "someVector3" per frame and make it follow any sort of math you want. Unity's Coroutines make functions execute over a time in a way you can procedurally control, I'd say give them a try, it'll give you a good idea how to do this.
answered Jul 18 '12 at 07:27 PM