Applying force with respect to angle with the ground?

Hello,

I have a cube which is falling freely towards the ground. The cube right now has random rotation across X & Z axis (as it falls) and it does not have any rotations with Y axis. The cube is falling towards Y axis. Now in layman terms, if the cube is slanting, I would like to apply force in order to make the cube fall faster. Hence I thought I could just take the angle and apply relative force towards the direction it is turned.

Is that a good idea? If so could you guys help me with the logic and some pseudocode?

Thank you,

regards,

Karsnen.

I’m not 100% sure what you’re asking but this puts me in the mind of an asteroid entering orbit. Certain rotations of the asteroid may have less air resistance and fall faster and whatnot. If I understand you correctly you are looking for something like this:

if(BoxIsRotated)
{
Make Box Fall Faster;
}

If that is the case you might be looking for something like this:

gameObject.rigidbody.AddForce(new Vector3(0, -1, 0) , ForceMode.Acceleration);

You would need a rigidbody on your cube and would probably need to adjust the Vector3 for your game scale and needs. You could also play around with different ForceModes.