- Home /
How a rotating sphere can rotate all the objects on the surface aswell?
How do I rotate all my game objects on the surface of a rotating sphere (a planet).
I have a ball, which collides and bounces (physic material) when reaching the planet and always stays at the exact same spot when it stops bouncing.
Here are some snippets:
transform.Rotate (0, RotationDegreesPerSecond * Time.deltaTime, 0); // Rotating planet
//Gravity sphere <-> planet
gameObject.GetComponent<Rigidbody>().AddForce((_mittigeKugelPos - transform.position).normalized * Accelaration);
Comment
Answer by kaka24fan · May 23, 2015 at 04:14 PM
I'm not sure if I understand what you wanna do, but if you simply want to make some objects move and rotate together with a sphere, did you try making the sphere their parent? I'm pretty sure that should work.
Your answer
Follow this Question
Related Questions
Flip over an object (smooth transition) 3 Answers
Multiple Cars not working 1 Answer
Rotating following camera for a sphere 1 Answer
Distribute terrain in zones 3 Answers