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. Dismiss Notice

Rolling Ball Animation

Discussion in 'Animation' started by Jana1108, Apr 26, 2016.

  1. Jana1108

    Jana1108

    Joined:
    Jun 27, 2015
    Posts:
    215
    Hi, so in my game I animated a ball so it rotated 360 degrees on the x axis over 1 second. I want the main camera to follow this object so I made it a child of the ball, however the camera rotates as well and I don't know how to fix this. Can anyone please help?
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    me no code - but I think you want to inherit the transformation of the ball but not the rotation.
    I don't know how to do this but thought it might help lead you to a solution.
     
  3. Jana1108

    Jana1108

    Joined:
    Jun 27, 2015
    Posts:
    215
    Yeah that's pretty much what I want the camera to do. Not sure how though?
     
  4. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
  5. Jana1108

    Jana1108

    Joined:
    Jun 27, 2015
    Posts:
    215
  6. Jana1108

    Jana1108

    Joined:
    Jun 27, 2015
    Posts:
    215