Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question How to stretch 2D sprite in a fisheye-type effect using bones?

Discussion in 'Animation' started by anadjurkovic, Apr 4, 2023.

  1. anadjurkovic

    anadjurkovic

    Joined:
    Jan 12, 2022
    Posts:
    2
    Hi I'm new to 2D bone rigging and had a question about non-uniform scaling.

    I have a 2D sprite that lives on a texture sheet (from TexturePacker), and I was wondering, is it possible to scale the sprite from the centre such that the stretching is strongest at the centre, and stretches less towards the edges?

    I drew a little drawing attached here to show what I mean (sprite represented in red). Is there a way I could attach a bone to my sprite to achieve this (in order to animate things like an expanding lung for instance)?

    Thank you!

    https://imgur.com/a/XdVijxN
     

    Attached Files:

  2. anadjurkovic

    anadjurkovic

    Joined:
    Jan 12, 2022
    Posts:
    2
    For those wondering, one solution was to add one bone in the middle to scale via animation, then a few more bones to simply constrain the image at the edges (see image, bones drawn in purple)


    https://imgur.com/a/75TbQlP