x


Vector3.forward question

Hello everyone,

I've got a question related to the Vector3.forward, I want my character to move forward, but when I reffer to Vector3.forward, it gets the global z axis of my character, instead of the local z axis which is the one I want. How can I solve this? Is there a way I can get the local Vector3.forward?

more ▼

asked Aug 19 '11 at 02:05 PM

Setzer22 gravatar image

Setzer22
456 20 33 42

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

1 answer: sort oldest

use

transform.forward

this will use the local z axis

more ▼

answered Aug 19 '11 at 02:33 PM

Ziad gravatar image

Ziad
1.2k 8 13 31

Thank you, I didn't know that.

Aug 19 '11 at 02:51 PM Setzer22

You welcome :)

Aug 20 '11 at 03:02 PM Ziad
(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:

x195
x102

asked: Aug 19 '11 at 02:05 PM

Seen: 2061 times

Last Updated: Aug 20 '11 at 03:02 PM