@mikeNspired it is indeed cutting a solid mesh dynamically at runtime. Unity allows manipulation of mesh vertices and textures at runtime. There are a few mesh cutting tools out there, the one I used is called Shatter Toolkit which can be found on the asset store. From there, it was simply a matter of converting the planar cuts from 2D XY (with mouse) to 3D with appropriate rotation angles. Currently, when you cut, it will always make a straight cut (planar cut), which is actually quite difficult to do when cutting with a real sword, so in a way, you are cutting as a master swordsman as a result. If I were to expand on this game idea, I would like to figure out how to make curved cuts work with dynamic meshes, which is something that doesn't seem possible currently or at least is very difficult. This way, you can actually get rated on the quality of your cut, whether it was a clean/straight cut, or whether it curved or changed direction through the target.
Play game
Tatami Samurai's itch.io pagePlease describe your creation.
A game where you get to cut tatami mats with a katana controlled by your hand.
Programming language?
C#, Unity
Video of your demo? (Strongly recommended for hardware hacks.)
https://youtu.be/YGQmgZ0R8k4
Leave a comment
Log in with itch.io to leave a comment.