- Home /
How to Prevent Rolling Cube from Climbing Up Walls
Hello! I followed the guide embedded for a cube that rolls along a grid. Rolling Cube Vid
The code works great, but I am having issues with collision. If you roll into a wall, you will start to climb up it. I want it so that if the cube hits a wall (or potentially other rolling cubes), it will stop rolling and you'll have to move in a different direction.
How would I achieve this? I've tried a handful of tricks, but have come up short. Sorry if this has a simple solution, I'm fairly new to Unity haha
Your answer
Follow this Question
Related Questions
Keep rotation when changing parent in Unity 3D 1 Answer
Rigidbody doesn't rotate after collision 3 Answers
Hockey Game collider objects going through objects 0 Answers
How to prevent a thrown object from rotating but not effect the physics of its collision? 0 Answers
Camera and mesh not colliding 1 Answer