- Home /
Character gets stuck on projectile, despite different layers,Player gets stuck on projectile, despite different layers
Hello everyone, So I'm working on a 2D platform game where the player can launch a projectile, but when the projectile appears, the player gets stuck on it. I tried to fix this by putting the player and the projectile on two different layers, and then unchecking the box that allows for collision in project settings. But they still collide with each other! If anyone knows what might be causing this issue, I would greatly appreciate it.
I do have an idea of what the problem might be, but I'm not sure. My player object depends on a class called Physics Object, which has a protected RigidBody2D. This might be causing the player to collide with the projectile anyways?
The moment this scenario happens, pause the game and check both gameobject hierarchies for their colliders and the layer those have. If done correctly it will work as you expected it to. There must be something else going on. It depends on what the Physics Object script does, but just the protected RIgidbody2D serialized field won't cause this.
Your answer
![](https://koobas.hobune.stream/wayback/20220612213535im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D Collisions Not Working 2 Answers
Death Counter dont work when changing scenes 2 Answers
How to i add force in a angle i have got? 1 Answer
How to check if an object hits the ground hard enough then add explosive force around it (2D) 1 Answer
Tilemap Collider 2D not generating colliders...,Tilemap Colliders won't generate.... 0 Answers