Search Unity

Physics applied to parts of mesh

Discussion in 'General Graphics' started by majszi, Nov 29, 2021.

  1. majszi

    majszi

    Joined:
    Oct 22, 2020
    Posts:
    3
    I am creating a cooking 3d game and designing models for it and I am wondering what is the best approach to create cutting food effect.
    Is it better to create one original mesh and then it's cut parts that will appear on a screen or maybe designing 1 mesh with child and applying some kind of physics to it so for example when knife hits it it breaks?
    I dont need extremely precise cutting animation as it will be a low poly game.
    Any ideas welcome!
     
  2. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,433
    Is it important to you that the player's knife position corelates to the place(s) the food objects get cut? If so, I would look at some inexpensive "mesh slicer" scripts on the Asset Store. If not, I would suggest you just have three or four separate meshes that describe various stages of being cut up (whole, chopped once, chopped a few times, fully chopped up). The former is what games like Fruit Ninja would do, and the latter is what games like Overcooked would do.