21-02-2019, 10:09 AM
(This post was last modified: 21-02-2019, 10:11 AM by josemendez.)
(20-02-2019, 05:04 PM)tunageXD Wrote: I wish to integrate softbody physics into my project using 2d sprites and 2d colliders.
For example I want softbody physics on a 2d sprite that will deform when 2d sprite projectiles collide with it. Would I need to convert all of these sprites to skinned mesh? If so what would be the best way to achieve this?
I cannot find any applicable documentation or example of how to achieve this.
Any help would be greatly appreciated!
Hi,
Sprites deformation is not supported out of the box. Only SkinnedMeshRenderers are currently supported. You could however do this yourself by getting particle positions at the end of each timestep and deforming a 2D sprite mesh directly, or use a planar (flat) mesh together with a skinned mesh renderer.