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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

2 Objects collide and not collide within a certain y range?

Discussion in 'Physics' started by Flybye, Sep 13, 2015.

  1. Flybye

    Flybye

    Joined:
    Mar 25, 2015
    Posts:
    100
    Hi all,

    Is it possible to set 2 objects to collide if, for example, they are in y 0-5 but not collide if they are 5+?

    If so, is that difficult to implement? My skills are pretty limited, and I have only released one game. So I'm gauging if this is something that I can do or not. Because if it is possible, then I know I will be hunting down a lot of scripting help. :)
     
  2. HiddenMonk

    HiddenMonk

    Joined:
    Dec 19, 2014
    Posts:
    987
  3. Flybye

    Flybye

    Joined:
    Mar 25, 2015
    Posts:
    100
    Yes to ignore each other. Seems like a good start. TY!