Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /nfs/c12/h04/mnt/221819/domains/unity3dsupport.com/html/wp-content/plugins/siteorigin-panels/inc/styles-admin.php on line 390
Using a simple C# snippet to rotate GameObjects – State Trivia

The following snippet animates the electrons around the nucleus.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class rotate : MonoBehaviour {

    public GameObject sphereOne;

    void Update ()
        transform.RotateAround(sphereOne.transform.position, sphereOne.transform.up, 100*Time.deltaTime);