My player's rigidbody 2d is being continuously pushed downwards by box collider 2d
I have tried many things, help. When I turn off the player movement script the problem persists, however when i turn off the 2d box collider on the player object, the player's rigidbody 2d stops going downwards. I think it is being pushed by the box collider, is there a way to stop this? tried resetting both components to default settings and then setting 0 gravity scale, not working only way to stop this is to either turn off the collider, set the collider to istrigger (which im not sure is what i want) which makes them pass through eachother or set the rigidbody to kinematic, which removes collision functionality (i want to keep collision physics) I tried switching to a circle collider which i made smaller, it confirms my suspicions because it pushes the rigidbody 2d in a different pattern when i move my player. all of the solutions i could think of made either the box collider 2d or the rigid body 2d turn off collision forgive my horrible grammar and inconsistent speech i've lost sleep trying to solve this problem so i'm giving this thing up until tomorrow
Answer by mrducklespookster · Mar 26, 2021 at 06:29 AM
FOR PEOPLE STILL HAVING THIS PROBLEM, I SIMPLY REMOVED THE EDGE COLLIDER ON THE PLAYER'S CAMERA (i had not set up the edge collider yet, i only added it), ANYONE ELSE STILL HAVING THIS PROBLEM SHOULD TAKE A LOOK AT THIS BETTER PAGE BELOW https://answers.unity.com/questions/1758397/issues-with-rigidbody-boxcollider-and-gravity-in-a.html
Your answer
Follow this Question
Related Questions
How do I destroy a prefab from an array list? 1 Answer
OnCollisionEnter2D not getting called 2 Answers
Player can only push one crate at a time 0 Answers
transform.position to Rigidbody.AddForce 2 Answers