In general the question is like in the title. I do have two collision objects in my character, one is for the environment, the other one is for user input (Touch Event). I do need it this way as the penguin moves quite fast, so the hit box for touch events must be bigger than the penguin for the usability reasons, and the environemt collider must be smaller to match the collisions with the visuals and the speed of the gameplay.
That’s the gameplay screen to give you an idea of what we are talking about here:
So the penguin needs to look something like that:
Every time he drops down a level, which is simply having a trigger on the image below, a Begin Overalp event is fired.
The function that is fired by this event looks like this:
But it gets fired twice, as both of the collision components from the penguin are firing the Begin Overlap Event. If I turn off the Overlap Events for the hit box collider the input stops working as well… So basically what I’m looking for is some help in identifing which of the collision components are overlaping with the platform trigger and take that into account in my score increasing mechanics. I did try to do some research but didn’t find the answer I was looking for, if anyone knows the answer or simply where can I find it, I will be really greatfull.