Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Deform a 2D tire?

Discussion in 'Physics' started by TripleDouble, Jun 11, 2015.

  1. TripleDouble

    TripleDouble

    Joined:
    Mar 18, 2014
    Posts:
    11
    Hello,
    I'm searching for solution to deform a 2D tire, when its collide with ground. Just a little bit press edges of sprite, where it lays on the ground just like in the picture below.
    I know jelly sprites, but it deform a whole sprite.
     

    Attached Files:

  2. HiddenMonk

    HiddenMonk

    Joined:
    Dec 19, 2014
    Posts:
    987
    Maybe have 2 separate sprites, one for the outer ring, and one for the inner. This way you can lock the inner, but deform the outer all you want ;)
     
  3. TripleDouble

    TripleDouble

    Joined:
    Mar 18, 2014
    Posts:
    11
    Yeah I considered that, but how to deform that outer layer?
     
  4. HiddenMonk

    HiddenMonk

    Joined:
    Dec 19, 2014
    Posts:
    987
    I think what people do is they turn the sprite into a mesh, such as a plane with 2d collider, with the sprite as its texture and deform the mesh.

    I think you can see an example of it in this video