Search Unity

Can you collision with all?

Discussion in 'Scripting' started by MrAwesome, Nov 3, 2012.

  1. MrAwesome

    MrAwesome

    Joined:
    Sep 1, 2011
    Posts:
    171
    Can you make a gameobject that react when it collision with anything?
     
  2. Asii

    Asii

    Joined:
    Sep 28, 2012
    Posts:
    53
    go to unity 3d's script reference site and search for oncollision will tell you all you need to know hopefully
     
    Last edited: Nov 3, 2012
  3. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697
    Sure.


    Just do not limit it with an "if tag statement". Normally people want it to react (termed loosely as any two colliders that collide, react) but to apply so,e type of programmed function.... If that is what you mean, leave out the tag.