So in my 2d platformer I have 2 issue. 1. The box I have goes through objects kind of. 2. When moving back and forth on a flat surface, my box flips which it shouldn’t. This video should explain a bit better:
When you say you can’t click fixed angle because you do need the box to turn - do you mean you need to be able to rotate it, or do you mean you need the physics to still rotate it?
Because you can still rotate it manually from script with fixed angle on, just not with physics.
I need the physics to turn it. Its part of the game. I just want it to not rotate when moving sideways
If you’re using BoxCollider2D for each of those ‘tiles’ then you’ll be occasionally catching the corners of one of the boxes causing it to rotate (it’s not flipping which is a term usual used to indicate mirroring vertically or horizontally).
Whilst this may not be what you want, it’s what you get from Box2D. This is what the EdgeCollider2D is for to provide a continuous surface composed of edges.
Still one of the best descriptions out there: Ghost vertices - Box2D tutorials - iforce2d
I’m not sure of the scale of your objects so the overlap could be tiny if your objects are tiny. Try turning on ‘Continuous’ collision mode on the ‘player’ Rigidbody2D component.
This worked, thanks a ton! Ill test it some more but that seemed to have solved my issue
Good stuff, glad it worked.