2D Incorrect Triggered without Collision Between Objects

Hey,

I created a sample platfrom game. It was working smoothly at first time when i working with levels. I took a break from the project for one month and I started yesterday again.

My problem is: Normally to call the OnTriggerEnter function, an object collisions are required between object. But It’s being triggered (OnTriggerEnter) without a collision. I don’t know how.

Scenario is ismple: If object A hits the Object C’s upper trigger, the code (OnTriggerEnter) will run and Spike (obj B) will spawn upper the obj C. But it’s triggered when it’s 1 cm between them.

When I drop down the TimeScale value to 0.5f, this doesn’t happening.

My theory: I wonder if the character interact too quickly with obj C, passes through the object and then goes back again? (I mean : “Don’t Go Through Things”)

Best regards…

(The description picture is uploaded to the attachment section.)
(If you can’t see picture: Imgur: The magic of the Internet)

That is strange behavior, my best guess is that your Rigidbody is playing tricks on you.

If your Rigidbody “interpolate” value is set to “extrapolate” or “interpolate”, it will sometimes guess where your collider is moving and run trigger code a little early when you’re about to hit.

If your Object B has multiple colliders in it’s children, the Rigidbody will run the Trigger code if any of Object Bs colliders collide with the trigger.

Good luck