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

Can I get built in collision boxes to only detect collision in certain areas?

Discussion in 'Editor & General Support' started by Draconic, Jul 22, 2014.

  1. Draconic

    Draconic

    Joined:
    Oct 12, 2013
    Posts:
    82
    I think I have a way to do something like this with a custom raycasting physics system, but I think that
    would take quite a while. I have points in the game world that have a radius. The game is 2D. The points and radius will create a circular area, which I want colliders to detect. Is there a way that I can check for collisions on a collider, then get the point on the collider that it collided, then check if it is within this circle area (The distance to the center point is less than the radius), then decide to ignore the collision if it is within the area. The effect I want would be a movable circular area that will stop collision inside of it. Sorry if this is a bit specific to my game, but help would be great!
     
  2. GarthSmith

    GarthSmith

    Joined:
    Apr 26, 2012
    Posts:
    1,240
  3. Draconic

    Draconic

    Joined:
    Oct 12, 2013
    Posts:
    82
    GarthSmith likes this.