Hi,
i am trying to roll one small sphere on another bigger sphere with keyboard arrows as input. But it should always remain sticky to bigger sphere.
Any ideas how to do that?
Regards
Tushar
Hi,
i am trying to roll one small sphere on another bigger sphere with keyboard arrows as input. But it should always remain sticky to bigger sphere.
Any ideas how to do that?
Regards
Tushar
can you add a picture explaining what you are trying to do ?
you could just position second sphere above first sphere in your Update() script
and rotate it opposite direction to the lower sphere, and rotation speed multiplied by scalar which is difference in ratios between circumfrence of spheres.
(if I understand your question correctly)
If I understand what you’re trying to do correctly and the large sphere is effectively a ‘planet’ that the small sphere rolls around on then my recommendation would be to use a static kinematic Rigidbody for the large sphere, and for the small sphere have it as a dynamic Rigidbody which is not affected by gravity but with a component attached where a FixedUpdate() applies a ‘gravity replacement force’ which pushes it towards the centre of the large sphere and user controls which apply forces/torques to it.
I’ve been considering trying something similar to this myself so if you give it a try let me know how it goes.