Search Unity

Free Form Deformation Extension for 2DAnimation Package

Discussion in '2D' started by bearcoree, Jul 31, 2020.

  1. bearcoree

    bearcoree

    Joined:
    Mar 8, 2016
    Posts:
    72
    I made an extension for the Unity 2DAnimation Package that allows scripts to access and modify to each individual Vertex Position.

    Using this, I wrote a basic FFD script and a basic vertex mover:


    Here's the full source of everything you need to get this to work on github:
    https://github.com/democore/UnityVertexModify2D

    Sadly, the only way I found to make this work is to replace the 2DAnimation package with a custom one that exposes the vertex data.

    Hope this can be of help! c:
     
    DragonCoder, mgear and Fi711 like this.
  2. Jaime97

    Jaime97

    Joined:
    Aug 1, 2017
    Posts:
    10
    Hello!
    @bearcoree I know this was posted a long time ago but, do you happen to have an updated version of this? Working with the new 2DAnimation package.
     
  3. bearcoree

    bearcoree

    Joined:
    Mar 8, 2016
    Posts:
    72
    Heya, sorry, but I didn't continue development on this. Feel free to use my code to make your own advanced version tho!
     
  4. Jaime97

    Jaime97

    Joined:
    Aug 1, 2017
    Posts:
    10
    Thanks @bearcoree! I imagined it, just wanted to confirm :)