Chopping Enemies in half.

Hello I got everything setup I got blades, weapons, and items. I got player already setup but I got Cops from Pokemon as enemies I want a script that I can cut them in half or more parts like metal gear rising and I need that script. This is my last question. And main menu I got 4 options Story, VR Mission, Collections, and quit. how can I go to those different option without going to level 1.

You will need to procedurally “shatter” or “slice” the mesh. To do this, you’ll need to get the vertices from the mesh, then add vertices along the line you want to cut, then split the array of vertices (and possibly also the triangles and UVs), and re-build the meshes, separately.

However, I might suggest not going after such a daunting task, just yet, as one can achieve a near-perfect simulation of actual variable mesh slicing with considerably less work by simply keeping sliced versions of the original meshes on hand, and replacing the original mesh with those, when the original mesh is cut.

However, if you were not able to find a script that was pre-written about this on the Unify Wiki, and are not willing to pay for something from the asset store (such as this, and believe me, there’s a reason it’s so pricey :stuck_out_tongue: this is a very hard mechanic to implement, properly), you’re not likely to find anyone here who would be willing to go out and write this entire system for you, free of charge.

I will not readily accuse you of coming here with the purpose of having someone else write the entire script for you (which, in all likeliness, would be more than one script, anyway), though without any contradictory statement from you, I’d be hard-pressed to believe otherwise. Just know that Unity Answers is intended for relatively simplistic questions that have relatively simplistic answers, and not a place to ask people to do your work for you, free of charge.

Beyond that, you have my best wishes for your project, and I hope my answers were suitable enough to point you in the right direction.

Best of luck.