- Home /
Question by
AsgMostafa · Jan 19, 2021 at 07:11 AM ·
triggerphysics2dlayercollision
"IsTouchingLayers" still evaluates true when called in "OnTriggerExit2D".
So I have a ball in the scene that I'd like to change its trigger into collision when it passes through the first block it touches and is not inside any other blocks. So in "OnTriggerExit2D" I'm checking if the ball is inside any other blocks(using "isTouchingLayers"), but it evaluates true, meaning it still thinks the ball is inside a block.
so what is wrong here? am i misssing something?
code-ssh.jpg
(311.7 kB)
screenshot.jpg
(255.7 kB)
Comment
Your answer
Follow this Question
Related Questions
Performance: How expensive are Trigger Collisions? How many collision layers should be used? 1 Answer
IgnoreLayerCollision not disabling collisions 1 Answer
ParticleSystem TriggerModule: Collide with world / collide with unlimited colliders? 0 Answers
Many 2D rigidbodies optimization 1 Answer
How can I hide physics? 1 Answer