- Home /
Question by
Yamf · Nov 11, 2017 at 05:49 PM ·
rigidbody2dvelocityrigidbody.addforcedash
Rigidbody2D.AddForce can't change X velocity
I'm trying to execute a dash using rigidbody2D.AddForce yet for some weird reason it only lets me go up or down.. This is what im trying to run:
public void Dash ()
{
player.MyRigidbody.AddForce(new Vector2(5f,5f), ForceMode2D.Impulse);
}
Here's my rigidbody configuration:
Any help is much appreciated!
capture.png
(15.6 kB)
Comment
Best Answer
Answer by Yamf · Nov 25, 2017 at 01:29 PM
For anyone having similar troubles as mine know this: my problem was enabling root motion on my animator :|