x


Making an object rotate while holding the left mouse button down?

So I have a question about rotating an object. I'm using the WSAD keys to move around, but I want to when I hold down the left mouse button, rotated the object either left or right. I made a ship and it will be a cool way to move it around.

more ▼

asked Jun 05 '12 at 10:43 PM

Kurpowski86 gravatar image

Kurpowski86
30 5 7 9

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

1 answer: sort voted first

You'll need Input.GetAxis( "Mouse X" ); same for Y. And Rotate obviously. Or alternatively this.

more ▼

answered Jun 05 '12 at 10:44 PM

Berenger gravatar image

Berenger
11k 12 19 53

(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:

x4139
x2155

asked: Jun 05 '12 at 10:43 PM

Seen: 439 times

Last Updated: Jun 05 '12 at 10:44 PM