E
E
ENDRAER2020-11-29 00:42:22
Unity
ENDRAER, 2020-11-29 00:42:22

What are the directions of the ForceMode2D.Impulse impulse?

There is an impulse that should throw me (the character) in a certain direction, there is such a script:

rb2D.AddForce(transform.up * StrengthDash, ForceMode2D.Impulse);

In this case, the direction is up, but I also need it to make a dash down, ok, this is down, right is right and left is left, this is a no brainer, but how will it be right up? Or down left?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-11-29
@ENDRAER

Numbers, you need to use numbers there, not predefined vector values. And up + rightthisVector2(1, 1)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question