Search Unity

[SOLVED] Sprite cut off when rotating at Y axis

Discussion in '2D' started by spoiltcheese, Jul 31, 2015.

  1. spoiltcheese

    spoiltcheese

    Joined:
    Jan 25, 2013
    Posts:
    6
    I'm trying to create a flipping card by rotating it by its Y axis. On the scene view it looks fine but in the game view half of it (possibly toward the trailing edge) is cut off. What is causing this?
     
  2. blizzy

    blizzy

    Joined:
    Apr 27, 2014
    Posts:
    775
    Provide screenshots, possibly including the axis widget in the scene view?
     
  3. spoiltcheese

    spoiltcheese

    Joined:
    Jan 25, 2013
    Posts:
    6
    This is what it looks like in the scene (mid flip):



    This is what it looks like in the game view:
     
    Last edited: Aug 1, 2015
  4. vakabaka

    vakabaka

    Joined:
    Jul 21, 2014
    Posts:
    1,153
    try move camera on z back
     
  5. blizzy

    blizzy

    Joined:
    Apr 27, 2014
    Posts:
    775
    Yes, it looks like it is clipped by the camera. Moving the camera or changing the camera's clipping planes should help.
     
  6. vakabaka

    vakabaka

    Joined:
    Jul 21, 2014
    Posts:
    1,153
    or move background on z forward :D
     
  7. spoiltcheese

    spoiltcheese

    Joined:
    Jan 25, 2013
    Posts:
    6
    Solved! Moving the camera did the trick.
     
    Last edited: Aug 4, 2015