Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to cut a desired shape out with desired depth of a mesh on VR ?

Discussion in 'VR' started by saiflayouni, Apr 2, 2023.

  1. saiflayouni

    saiflayouni

    Joined:
    Aug 9, 2022
    Posts:
    10
    I want the player to be able to cut a hole through a human body with a desired depth on VR like this video

    any help please
     
  2. nilagard

    nilagard

    Joined:
    Jan 13, 2017
    Posts:
    77
    This seems like a giant task you want someone else to solve for you, I suggest you start a bit smaller and work on projects that you can code yourself, and when you need help solving a script that you are unsure of, post it and have someone look at it with you.
     
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,260
    Yep, mesh slicing with a flat plane is already hard enough. This is a multitude harder. Trying to find an asset which can do this or a freelancer will probably be more cost effective
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,859
    alternatives:
    - if its sphere or simple mesh, you could fake it by pushing vertices inside, moving vertices manually or pushing in shader with painted texture.. (needs to be high resolution or tesselated mesh shader)
    - if it just needs to cut visible hole (not actually modify mesh), could paint into texture and set that part transparent or discarded

    see also this example,
    https://forum.unity.com/threads/realtime-mesh-cutting.1166075/#post-7895767
     
    DevDunk likes this.