- Home /
IsTrigger Effecting collision
When i enable isTrigger on the players box collider the player just goes through the walls; I tried making the rigidbody2d of the wall static, but it still doesnt work. Can anyone help me?
I can't really tell what you're wanting to do, there are many ways this question can be answered.
You said you made the players collider "isTrigger"? Why not make the other object "isTrigger"? For example. If you want spikes that kill the player, make the spikers "isTrigger", not the player.
If you want a better answer, please explain what you're trying to do :)
Answer by logicandchaos · Jul 06, 2020 at 01:26 PM
Triggers do not collide if you want it to collide it can't be a trigger. Use OnCollision instead of OnTrigger in your code.
Your answer
Follow this Question
Related Questions
OnTriggerEnter2D first collision causes lag/freeze 1 Answer
2DColliders going through eachother 1 Answer
Weird 2d collision behaviour 1 Answer