playMaker

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

VascBogdan

  • Full Member
  • ***
  • Posts: 118
[SOLVED]Ignore Collision
« on: February 07, 2015, 07: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, 05:13:37 AM by VascBogdan »

richardh

  • Junior Playmaker
  • **
  • Posts: 97
Re: Ignore Collision
« Reply #1 on: February 07, 2015, 08: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

  • Full Member
  • ***
  • Posts: 158
    • wetcircuit.com
Re: Ignore Collision
« Reply #2 on: February 07, 2015, 08: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, 08:43:00 AM by wetcircuit »

VascBogdan

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