#Input detection
1 messages · Page 1 of 1 (latest)
It's a parameter to AddForce
Also wait is this 2D?
Ok good
actually another problem
how do i transform left and right force?
@dull veldt
I have no idea what that means
like if i press a and d to strafe left and right
you know i am using transform.forward
how do i go left and right?
transform.right
and a negative value for left
Yes
ok
and what are the key codes for the arrow keys?
Because right now, it only works with wasd```
if (Input.GetKeyDown(KeyCode.W))
what do i put in ```
if (Input.GetKeyDown(KeyCode.<blank>))
for the left arrow key
for example
the docs *sigh*