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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question creating imaginary boundary for contoured surface

Discussion in 'Editor & General Support' started by soni_saurabh, Jun 11, 2020.

  1. soni_saurabh

    soni_saurabh

    Joined:
    Jun 3, 2020
    Posts:
    7
    i have a contoured surface (not a standard geometry) and i have given it a mesh collider. however my player falls off the edge. is there any way to create an imaginary boundary that prevents the fall.

    i have read about box and other colliders and they work well for standard geometrical shapes. since my surface is not a standard geometry as shown below, i hope there is a better way to create boundaries.

    Capture.PNG
     
  2. dahiyabunty1

    dahiyabunty1

    Joined:
    Jan 22, 2020
    Posts:
    68
    ok . make another mesh by extruding edges and then disable renderer component
     
    soni_saurabh likes this.
  3. soni_saurabh

    soni_saurabh

    Joined:
    Jun 3, 2020
    Posts:
    7
    you are a genius