Warp GameObject Size When Entering/Leaving Area

Posted by Julian on Game Development See other posts from Game Development or by Julian
Published on 2014-08-15T23:36:05Z Indexed on 2014/08/18 16:48 UTC
Read the original article Hit count: 384

Below I have an image describing the desired functionality I am going for. Let's say you control a square and when you move this square into a given area, any part of your rigidbody/model inside of the area will be magnified upon entering and shrunk upon leaving. So now you more or less are made up of two rectangles, one small and one large.

What would be an elegant approach towards achieving this effect?

enter image description here

© Game Development or respective owner

Related posts about 2d

Related posts about unity