Hi,
I’m working with Unity since 2 Weeks and now I’ve got my first question:
How can I an also created Instance(prefab) moving along the x-axes?
Hope u can help me!
thx
Juli
Hi,
I’m working with Unity since 2 Weeks and now I’ve got my first question:
How can I an also created Instance(prefab) moving along the x-axes?
Hope u can help me!
thx
Juli
Have you looked into the FPS Tutorial? The Rocket Script that they have in the tutorial actually creates an instanced object that’s pushed along a forward axis (this is usually the x axis, when y is up, and z is usually sideways) – This is exactly what you’re looking for because the script looks for a prefab.
However it’s pushed along the Game Object’s x axis, which is why x is usually forward. You can cause do this with a stationary object as well (not attached to the player).
Well, I think not cause I don’t know where these Tutorials are…
I looked for it,… sry, could u give me a link or description, please?
thx
Juli
Here are all of the tutorials you can find on the Unity website
http://unity3d.com/support/resources/tutorials/
And this is the FPS Tutorial
http://unity3d.com/support/resources/tutorials/fpstutorial
It’s a very simple tutorial that can be done in one sitting. The Unity Tutorials are put together for you, and all you need to do is follow the instructions and set it up.
Also you can look at some example projects if you’re planning on doing something that’s within these projects:
thanks a lot!
This is exactly what I searched for!
thx
Juli
Okay…
You helped me a lot!
But now i’ve got a new problem:
I want the instances to move up- and downwards in dependence of a sinusfunction from the position on the x-Axes.
But my computer doesn’t do that, it sends the instances along the x-axes but doesn’t transform the position on the y-axes.
I hope you can help me!
Thanks
Juli