I use unity 3D with c# and i made cube that jumps and moves with forward force and it can go in A and D directions and when it goes forward i try jumping and moving cube starts rotate Like this: And i want it to be like this : so when i move and jump it doesnt rotate at all
There's a lot of factors that go into what happens when you apply a force to an object. You haven't really described your issue very well or included any of your code, so it is hard to speculate. Just from your images though it looks like your cube rotated around its Y axis. You can prevent that by freezing Y rotation on the rigidbody.
I know but if i freaze y it wont jump and i want to make it jump and spin arround in air for 90 degrees