- Home /
Move around a sphere
Hey there,
I wanted to create a game similar to Super Stardust HD https://www.youtube.com/watch?v=q-qV0NuLZQo
I was wondering what the best approach was to achieve this. (player moving around a sphere killing asteroids and enemies etc.) I read quite a lot of articles regarding Super Mario Galaxy which basically shares the same movement however all of the tutorials for such a movement require the usage of physics (Gravity) and Raycasts. Considering the amount of bullets, asteroids and enemies in a game like Super Stardust wouldn't that be too much if every single object would use gravity and raycasts etc ?
You might find a lot of usefull information here:
http://answers.unity3d.com/questions/41050/how-can-i-make-movement-on-a-sphere.html
If you're just using a sphere, you could fake everything since "on the surface" is just a specific distance to it's centre. Flying objects would just be further away.
Or you could use physics, program$$anonymous$$g your own gravity always pointing to the centre of the sphere while the affected object as an up vector always pointing from it.
Answer by iHaveReturnd · Mar 25, 2015 at 06:06 PM
This is the thread that got it working for me: http://forum.unity3d.com/threads/faux-gravity-making-my-brain-spin-help.8873/ Took quite a bit of work and I understood a lot less then though. Hope it works out for you :)
Down a little bit from the initial post someone created the FauxGravity scripts and whatnot.
Your answer
Follow this Question
Related Questions
Unity5 WebGl for Mobile Browsers? 7 Answers
Question about Coroutines/Time 0 Answers
Will System.DateTime work on Android/iOS? 1 Answer