matheussartori
New member
Hi Guys.
I'm trying to make the player don't collide with an specific GameObject, which is an invisible enemy.
Today, if the player walks through the invisible enemy, the player "hits" something an the invisible enemy moves.
The invisible enemy has the "InvisibleGhost" layer.
Things that i already tried:
- On the invisible enemy script, on the OnCollisionEnter, i compared the layer/tag and disabled the collision, but didn't work. I tried with the character and subcharacter layers.
- I tried to disable directly on the layer collision matrix:
- I tried to disable the collision with the InvisibleGhost layer, on the Ultimate Character Locomotion script.
I'm using the PUN addon btw, it's a multiplayer game.
Any hints of disabling the collision between this two?
Thanks!
I'm trying to make the player don't collide with an specific GameObject, which is an invisible enemy.
Today, if the player walks through the invisible enemy, the player "hits" something an the invisible enemy moves.
The invisible enemy has the "InvisibleGhost" layer.
Things that i already tried:
- On the invisible enemy script, on the OnCollisionEnter, i compared the layer/tag and disabled the collision, but didn't work. I tried with the character and subcharacter layers.
- I tried to disable directly on the layer collision matrix:
- I tried to disable the collision with the InvisibleGhost layer, on the Ultimate Character Locomotion script.
I'm using the PUN addon btw, it's a multiplayer game.
Any hints of disabling the collision between this two?
Thanks!