Can anyone show tell me the how to do Paper Folding Mechanism in unity?
Hi developers, I am working with unity in for last 1 year and still learning. I want to learn how to make a "Paper folding game" like Paperama and i want to add a Polygoncollider to the sprite object or the gameobject so that the final shape will form a collidable body. Thanks in advance.
That is a fairly advanced question that isn't really suited to this format. The answer touches upon shader use, mesh deformation, custom UI/UX, and a lot of math. I don't believe there is one standard way to do what you want. I guess, if I were you I would start with the $$anonymous$$esh class. See if you can take a quad (2 triangles), and then tessellate it so that it has 4 or more triangles. Then see if you can bend it along one of its edges. You can also do some searches on "$$anonymous$$esh Deformation" which should get you started.
Happy New Years
Answer by valiantjohn123 · Jun 27, 2017 at 12:49 PM
You don't need mesh and all for this, all you need is UI Image and Mask. Check this video to get better idea https://www.youtube.com/watch?v=CUW3fGEK9as You can download that project from here http://gnupart.tistory.com/entry/Unity3D-Simple-Page-Curl-Effect
This only works for single fold, that too from only one corner. If you want multi-folds then you can contact me, I made one similar project.
See what? $$anonymous$$y project? It's not there anymore, I made it long ago
Hey valiantjohn123, Could you tell me more about multiple folds situation? I have some ideas but I can't seem to find too much information about this anywhere. Do you already have a working mechanic you could share for study or any pointers to some viable solutions ? Thanks ! Nice day !
Hello valiantjohn123, I am interested by your solution for multiple folds for school researches, have you got a sample projects or anything that could help me achieve the desired effect ? That would help me a lot, thank you ! :)
You can find the completed project here, it supports till 8 folds. Its code is not well optimized. https://github.com/valiantjohn123/PaperFolding/
Your answer
Follow this Question
Related Questions
Changing Variables on one script with multiple other scripts 1 Answer
How should create a map for a top-down tile based 2d game? 1 Answer
White (not transparent) background in sprite [graphicsgale] 0 Answers
Simulating 2D depth in a sidescroller 0 Answers
How do I make a game like line zen style 0 Answers