#OnTriggerEnter

1 messages · Page 1 of 1 (latest)

leaden sail
#

Let's make a thread

dull sparrow
#

Oh yeah, good idea

leaden sail
#

Screenshot the object hierarchy, and also the Collider and Script component of both objects

#

Do you have 2D or 3D colliders?

dull sparrow
#

Okay

#

2D

leaden sail
#

Ah, then the fix should be simple

#

OnTriggerEnter2D

#

2D and 3D colliders are different, and don't interact etc

dull sparrow
#

Huh, let me try that

leaden sail
#

There are Trigger and Collision calls for both 2D and 3D

dull sparrow
#

Oh damn that's it

leaden sail
#

Great ✊

dull sparrow
#

Must have missed the 2D when I was reading the code from my other project

#

Thank you so much!!

leaden sail
#

Is your IDE configured tho?

#

auto-suggest etc

dull sparrow
#

Yeah

#

Don't know how I ended up missing that

leaden sail
#

there's a lot to take in 😅

#

You're welcome. Have a nice day. Good luck o/

dull sparrow
#

You're a hero lol, I was in a battle with that for the last hour and a half.