playMaker

Author Topic: [SOLVED]Ignore Collision  (Read 1452 times)

VascBogdan

  • Full Member
  • ***
  • Posts: 118
    • View Profile
[SOLVED]Ignore Collision
« on: February 07, 2015, 05:46:21 AM »
Is it possible to make an object to ignore collision with a tag object ?
For example, I have a bullet called EnemyBullet. If EnemyBullet hits an Enemy(tagged Enemy) it will just ignore the collision.

I don't want the object to ignore all collisions, only certain tags.
« Last Edit: February 08, 2015, 03:13:37 AM by VascBogdan »

richardh

  • Junior Playmaker
  • **
  • Posts: 97
    • View Profile
Re: Ignore Collision
« Reply #1 on: February 07, 2015, 06:22:35 AM »
If the EnemyBullett is set up to only interact with a certain tagged collider then it should just ignore any other colliders it interacts with - including the Enemy tag.

wetcircuit

  • Playmaker Newbie
  • *
  • Posts: 46
    • View Profile
    • wetcircuit.com
Re: Ignore Collision
« Reply #2 on: February 07, 2015, 06:41:13 AM »
Assign your objects to different layers. In your project physics settings use the collision matrix:

http://docs.unity3d.com/Manual/LayerBasedCollision.html

(I apologize if I have misunderstood the question)
« Last Edit: February 07, 2015, 06:43:00 AM by wetcircuit »

VascBogdan

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Ignore Collision
« Reply #3 on: February 07, 2015, 07:38:25 AM »
I solved with the metrix thing and I also understand how to do it now. Thank you ^^