- Home /
Creating Irregular 2D Shapes in Runtime
Is it possible to create 2D shapes like those in the following picture in runtime? The volume of the shapes and the edges need to change over time depending on changing game variables.
I'd thought about using meshes for this job but I can't figure out how to make the outermost edges of the mesh to be curved like the shapes in the picture. I'm also not certain if meshes are the most optimal and suitable solution to this problem.
Appreciate any help anybody can provide on this! Thanks!
You could use sprites and OverrideGeometry, it's not exactly a simple solution and you'll need to do a lot of maths to get shapes like those but it is possible.
Yep, that's going you be a little hard. You have two choices. Change the shape as a mesh or in texture pixels.
Your answer
Follow this Question
Related Questions
How can I calculate the normals of the edges of a 2D plane? 0 Answers
Can you manually set the layer order for triangles inside a mesh? 2 Answers
Is it possible to generate a 2D view of a 3D object at runtime? 0 Answers
Export objects to a .3DS file at runtime 1 Answer
How to create accurate mesh from texture (like 2D sprites) 2 Answers