Bend and object when touched

Home 4 Forums Swift and Sprite Kit Bend and object when touched

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Justin 10 months, 3 weeks ago.

  • December 27, 2017 at 8:07 pm #177734

    I’m trying to touch an object and bend it when touched and dragged. For example, I have a tree and want to touch the top and drag it to the left (the tree will bend from the top) and when lifting finger it flings back (with a little wiggle at the top) when back in place.

    Thanks.

  • December 28, 2017 at 12:05 pm #177745

    Thats pretty easy if you’ve got a sequence of images for the tree bending over. If you’re looking to do some kind of image transformation on a single image, thats probably possible (though I don’t know the code for it).

    I think you’re better off using the image sequence just because that’ll give you exactly the look you want.

You must be logged in to reply to this topic.