Bouncy sprite surface (modifying 2D sprite mesh and collider)

Hi all,

I would like to make bouncy, jelly like, sprite. I have setup where I have two anchor points and between them three game objects connected with spring joints. See attached video.

I would like the sprite surface (white box) to follow movements of bouncy1, 2 and 3 markers. Effectively making the surface look like it’s soft, jelly like. Also I would need collider to follow new shape of the sprite.

First of all, is my approach of using spring joints correct one. Secondly, how could I deform the sprite (access vertices and make them follow bouncy markers).

My object hierarchy:

Sprite

  • Anchor
  • Bouncy 1
  • Bouncy 2
  • Bouncy 3
  • Anchor

Anchors have kinetic rigidbody, bouncy ones have non-kinetic rigidbody and are connected together and to anchors with spring joints.

Thanks for any tips :slight_smile:

Sounds like the white area needs to act like water. Look at this possible solution…

Thank you for the tip.

However I would like implement it myself. Call it a learning experience.

There seem to jelly like assets in the Asset Store so this can be done (Unity Asset Store - The Best Assets for Game Making).

As a learning experience you can ask the creator of Jelly Sprites for some tips on how he created them…
http://forum.unity3d.com/threads/215305-Jelly-Sprites-Soft-body-sprite-physics-system