How to run electrons around proton in Unity?

Hello guys,

I am trying to model atom in unity3D. I created a ball but now I need to add smaller balls as electrons and make them rotate around the proton. I am a bad programmer or is there a way to do this without programming?

Thanks for any help.

I am going to draw a picture…

0 = proton
x = electron

Make your electron a child of the proton. Zero out everything, except offset one of the coordinates so its position isnt directing on top of the proton.

0--------x

using a legacy animation, animate the rotation of the electron to do a full 360. Set the new animation to loop. Add an animation component (not animator) and drag your new animation to that slot. It should now rotate around the proton.

https://unity3d.com/learn/tutorials/topics/animation

I guess you could use mecanim with this setup, but I usually use old school legacy animation for things like this.

Thank you guys for your effort. I finaly completed this task using a script. The formula is on a picture bellow.

83918-formula.png