#Input detection

1 messages · Page 1 of 1 (latest)

slate plume
#

how?

dull veldt
#

It's a parameter to AddForce

slate plume
#

i am new to unity

dull veldt
#

Also wait is this 2D?

slate plume
#

no

#

its 3d

dull veldt
#

Ok good

slate plume
#

And i tried it with a larger number and it worked

#

ending solved

slate plume
#

how do i transform left and right force?

#

@dull veldt

dull veldt
#

I have no idea what that means

slate plume
#

you know i am using transform.forward

#

how do i go left and right?

dull veldt
#

transform.right

slate plume
#

and a negative value for left

dull veldt
#

Yes

slate plume
#

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

dull veldt
#

Just look it up on the docs

#

It's all online for you

slate plume
#

the docs *sigh*

dull veldt
#

"unity keycode" you can see them all

#

Yes the docs. You should use them frequently. They're your most valuable resource