#Help me with colliders

1 messages · Page 1 of 1 (latest)

cinder solstice
#

Anyone?

rare iris
#

Unless the minions have Rigidbodies, the obss's rigidbody is going to be the one that fires the collision events for all of them

cinder solstice
#

So if I add a rigd body to the minions I have a way to differentiate?

#

minions have only trigger2d

rare iris
#

You could have the bullets be the ones that run OnTriggerEnter2D. Then you could check the object they hit, and see whether it's the minion or the boss

#

Having rigidbodies be children of other rigidbodies is likely going to mess with their movement

cinder solstice
#

hmm.. well yeah maybe that is the only way i wish someone could know a way handling that in the boss not on the bullet

#

but cant find a way to do that I think i wuill need to handle

#

on the bullet

#

as you said

#

Thank you

rare iris
#

You can have the bullet check for the presence of the boss script and if it's there, call a function on it