- Home /
How do I add diagonal force?
I need to add force that is diagonal for character knockback, but instead of going diagonally, the character is given force horizontally and then vertically. I want it to act more like an arc. This is my code for the knockback: rb.AddForce(new Vector2(-3000f,jumpforce/7));
It's also a 2D game in case that makes a difference.
Comment
I can't see why that wouldn't work, however, if there is no other option you could use $$anonymous$$oveTowards?