Collider and Rigidbody Problem
Hi guys!
I'm in trouble creating a simple 2D game. I have a gameobject which consists of a
Rect Transform,
Sprite Renderer,
Rigidbody 2D
and a Circle Collider 2D
component.
After adding the Circle Collider, my gameobject increases now its y-position instead of decreasing it. Why does that happen?
Answer by TrueMaskss786 · Aug 06, 2016 at 05:29 PM
I think the problem is your gravity scale. In your case it would be some negative value so it is going upward. Set it to 1 and it should work For me it is working perfect And also if you are not working on UI stuff use normal transform instead of Rect transform.
Your answer
Follow this Question
Related Questions
Rigidbody2D to go through Box Collider 2D 1 Answer
Why is my character slightly floating above the ground? 0 Answers
OnCollisionEnter 2d not working 0 Answers
Change camera origin point to top left? 2 Answers
Random position, overlap problem. 1 Answer