Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Help on moving the pivot point on a rotating object

Discussion in 'Animation' started by benthebomb101, Feb 21, 2017.

  1. benthebomb101

    benthebomb101

    Joined:
    Feb 21, 2017
    Posts:
    3
    Hey Guys, first time on the forum but i need some help on a project and im stumped.

    I want to animate a propeller so that it rotates around its own center rather than the center of the model im building.

    the model im creating is a multirotor (drone) and currently the propellor rotates like a helicopter rotor around the center of the model, rather than the prop rotating around the motor.

    Any thoughts?

    Sorry in advance for probably being a noob
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    If the model has correct pivot,
    Try setting pivot mode active (instead of center) from toolbar: (or press Z key to toggle)
    upload_2017-2-21_14-18-56.png

    If that doesnt help,
    then place empty gameobject as a pivot in the correct position,
    and place the rotor gameobject under it,
    and then you can animate the empty gameobjects rotation.
     
  3. benthebomb101

    benthebomb101

    Joined:
    Feb 21, 2017
    Posts:
    3
    im afraid that doesn't work. as far as i can tell, the package i downloaded from the asset store does the rotation animation in the C# script. it doesn't matter where you move the game object above it, it will always rotate around the center :(

    thanks for your help though! If you have any more thoughts though im all ears!
     
  4. benthebomb101

    benthebomb101

    Joined:
    Feb 21, 2017
    Posts:
    3
    an image if that helps :)
     

    Attached Files:

  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    cannot really see where the part pivot is,
    show in scene view, and inspector window too.
    (also center mode is enabled for pivot in that image)

    maybe need to see some part of the rotation code also (not whole script if its paid asset).
    (is it rotating the object using code, or using animation?)
     
  6. beowulfkaine

    beowulfkaine

    Joined:
    Apr 3, 2014
    Posts:
    185
    Thanks this helped me