In my game, I have a cube that’s rolling on the floor but if I use:
rb.AddForce( 0, 0 ,0 ,ForceMode.VelocityChange);
it adds velocity to the cube which is not very realistic since you can’t change velocity mid-air witch is not what I want.
I want to know how to instead of adding velocity in a specific direction I add velocity to the rotation so it could only move on the floor and it would also rotate more and not slide around on the floor.
is there also a way to make it diagonal rotation and also maintain the direction of rotation even if the cube is not facing in the same rotation of the camera?.
rb.angularVelocity is what you need.