Problem solved :)
Rigidbody2D is moving on its own
Hi! I'm trying to make a very simple maze game, and I'm stuck. I have a maze stuffed with box-colliders to give it walls. And I have a pink ball which is supposed to move through the maze. The ball has a Rigidbody2D and a circle-collider attached. I move the ball with a very simple script: public float speed; private Rigidbody2D rb2d; public float drag; public float ForceSpeed; void Start () { rb2d = GetComponent(); } void Update () { } void FixedUpdate() { float moveHorizontal = Input.GetAxis("Horizontal"); float moveVertical = Input.GetAxis("Vertical"); Vector2 movement = new Vector2(moveHorizontal, moveVertical); rb2d.AddForce(movement speed ForceSpeed); } It works just fine, when just a few colliders turned on. If I turn on all the colliders I need, the ball quickly flies on its own to one of the colliders (to the left in the first pic, to the bottom in the right pic) and kind of sticks to it. It will move only up or down when stuck to the left wall, and it won't do it anymore after it reached the end of the wall (only left or right). In the second picture it falls down and moves only right or left, never up. What can I do, so that the ball moves as it should and the maze doesn't lose half of its walls?
Follow this Question
Related Questions
Which object needs to be the trigger? 2 Answers
How to Stop Collider from Moving? 2 Answers
Dealing with weirdly shaped character (2D) 0 Answers
two objects collide, but slightly enter into each other. 0 Answers
rigidbody not moving 1 Answer