Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Rotation of objects, pivot points

Discussion in 'Editor & General Support' started by maxxjr, Jul 2, 2020.

  1. maxxjr

    maxxjr

    Joined:
    Dec 10, 2017
    Posts:
    13
    I have an empty object containing a sphere and a cube stacked on top of the sphere.

    When I rotate the object just using the inspector rotation field, the rotation point is the bottom of the sphere. So that the effect of the rotation is that the sphere looks like it rolls a bit as it rotates.

    What I would like to do instead is rotate the empty object, so that it rotates around the center of the sphere. In this way, the sphere simply rotates, but otherwise looks like it stays in place. I think this means changing the pivot point of the empty object. Or is there another way to do this? Or can you point me to a resource that talks about this?

    Thanks!

    (Also, is there a better forum for this type of question? I'm just starting with Unity)
     
  2. maxxjr

    maxxjr

    Joined:
    Dec 10, 2017
    Posts:
    13
    Playing around a bit, I moved the empty game object / parent object *inside* the sphere, at the center. This seems to do what I want.