x


How do you change Key Map? (Arrow Keys, WSAD, etc)

Right now the keyboard arrow keys are all mapped to "Horizontal" axis motion, causing my character to move forward/backward/right/left. I want to remap my arrow keys to be: (a)Right/Left == Turn right/left, and (b) Up/Down == Look up/down (or pitch the camera in 3rd person view).

How do you redefine which keys are associated with the "Horizontal" or "Vertical" axes?

more ▼

asked Feb 17, 2010 at 02:12 PM

adam michaels gravatar image

adam michaels
798 48 46 52

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

For remapping the keys associated with the "Horizontal" or "Vertical" axes, you'd simply go into Edit / Project Settings / Input. So that's very easy.

However, what it seems you're trying to do is creating another behavior for those axes. In that case, you might have to change the controller you are using (e.g. the CharacterController). In that later case, you'd have to be more specific as to how exactly you have your scene set up. Changing the behavior of the axes is obviously much more involved as you may have to code the specific behavior you want (but that would also be a different question, I guess).

more ▼

answered Feb 17, 2010 at 03:41 PM

jashan gravatar image

jashan
11.5k 45 60 138

(comments are locked)
10|3000 characters needed characters left
more ▼

answered Feb 17, 2010 at 03:41 PM

Duke gravatar image

Duke
463 4 6 15

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1551

asked: Feb 17, 2010 at 02:12 PM

Seen: 8258 times

Last Updated: Feb 17, 2010 at 02:12 PM