- Home /
Collider 2D and Sprite has different orientation. how?
I made this very simple 2d car-like thing. The two wheels have wheel joint 2d components. They are connected to the body. The body also has a sprite renderer with a simple white sprite. The problem is, the sprite isn't following the object's actual rotation all the time even if the box collider 2d has the proper rotation. How is that even possible since they both are attached to the same gameobject? Here is the component stack of the body and the scene view. As you can see, in the scene view, the car has flipped when going uphill. Although the colliders look alright, the sprite has some arbitrary orientation.
Your answer
Follow this Question
Related Questions
Sprites and level tiles overlapping when they shouldn't 0 Answers
Click/Touch on Different part of sprite detected ? 0 Answers
2D: Why are my Circle Colliders falling through Edge Colliders ?? 1 Answer
Can I generate a sprite for a specific collider? 0 Answers
2D Physics based rotation looses precision after hours 0 Answers