- Home /
Question by
onionman99 · Jul 17, 2013 at 10:03 AM ·
rigidbodyconstraints
when I fully constrain my walls in the rigidbody the player goes straight through the wall
in my 2d game there is no gravity and i dont want any object rotating. when i fully constrain my walls in the rigidbody inspector view my player just passes through the wall. how do you stop this from happening and what is the reason for this?
Comment
Answer by hatuf · Jul 18, 2013 at 10:22 AM
The walls shouldn't be rigidbodies, you'll need just the collider for them. Also set them to Static for a better performance.
Your answer
![](https://koobas.hobune.stream/wayback/20220613110254im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Remove rigidbody component 1 Answer
Rigidbody constraints not working with parent/child relationship 2 Answers
Constrain character to series of intersecting paths? 1 Answer
Is it possible to constrain an object's rotation in worldspace? 2 Answers
UnityEngine.Rigidbody does not contain a definition for `contraints' 1 Answer