- Home /
2D game, going through walls
Having a problem with my main character going through walls(just a cube, it has a rigidbody as does the player)
The only time it works is if I set IsKinematic to false, which my player touches the wall, it gets bumped off screen (if I freeze the position my player goes through it)
I just want my player (plane with a box collider, and rigidbody) not to be able to go through or move my wall (cube, with rigidbody and collider)
Help??:(
Answer by cookies · Aug 20, 2011 at 08:41 PM
FixedUpdate fixes the problem(put all the movements in there), let me know if there is a better solution tho
Your answer
![](https://koobas.hobune.stream/wayback/20220612185027im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Passing through walls. 2d toolkit 1 Answer
Wall collision problems!! 3 Answers
1 collider 2 fuctions, how? 1 Answer
Colliders 2d apparently touch each other even if they should not. 2 Answers
Collision problem 0 Answers