When I move my object called gun into another object called wall and they collide gun spins out of control into space. Both objects have box colliders and rigid body’s.
I would like for wall to act as a barrier so gun can not move out of bounds, and it dose but the spinning wildly into space is not a desired effect. Also I have tried freezing the rotation on the rigid body but then it just goes in a random direction on the x,y,z axis. Freezing position did not work either.
Thanks in advanced