- Home /
Orbit around object script.
I found a script on the wiki that i decided to use as it looked usefull for my 2d space game:
http://wiki.unity3d.com/index.php/Simple_planetary_orbits
The problem im having with it is the object i have orbiting is going up on the Y axis instead of using the dimensions of my game (Z and X).
I have been trying for about 2 hours to understand the code but can't seem too make it orbit the right way. Anyone got any hints or can look into the script for me i will be very greatful. I already know that i need to change the velocity but i don't know how to do that in the script. Freeze contraints just breaks the script just to let you know.
Your answer
Follow this Question
Related Questions
Memory Leak Help 2 Answers
App stuck on splash screen. Exception on applicationDidFinishLaunching. Xcode 4.5 and Unity 3.5.6 1 Answer
Ball getting stuck on going sideways. 1 Answer
Player gets stuck at position. 3 Answers
Essential math for games 2 Answers