Question by
two_armed_man · Sep 02, 2020 at 05:05 PM ·
collisioncollider2dtriggerstags
Collision Triggers at Random
Hey everyone,
I've got these lava pits that are supposed to burn the player up when he lands in them. It works great but sometimes it triggers at random.
Here is the code:
Here are some screen of it triggering when in the lava and when in mid air:
Is there something I'm doing wrong in my script?
The lava itself is a prefab that gets scaled in the scene to fill in any place where I need to it pool.
Any ideas would be greatly appreciated!
colliderlavatag.png
(17.7 kB)
colliderlavaissue.png
(513.7 kB)
Comment
Answer by two_armed_man · Sep 02, 2020 at 05:29 PM
Oh I'm so stupid! The lasers where triggering it! The ends of the lasers have colliders to trigger other game objects and they are children of the player. Uhg!
I guess posting the questions helps me understand the problem. :)