x


Infuriatingly simple moving question

All I need is a small piece of code to make something move back on it's own axes for a few seconds. I just can't seem to recall this ridiculously simple concept.

more ▼

asked May 24 '11 at 06:58 AM

Max 4 gravatar image

Max 4
254 60 64 71

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

1 answer: sort voted first

Something like

transform.Translate(-Vector3.forward * Time.deltaTime);

more ▼

answered May 24 '11 at 07:09 AM

DaveA gravatar image

DaveA
26.4k 151 171 256

There is a script that makes the object follow another object, and it doesn't wan't to work properly with it.

May 24 '11 at 07:13 AM Max 4

It's ok now. I was using Vector3.-forward.

May 24 '11 at 07:16 AM Max 4
(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:

x496
x25

asked: May 24 '11 at 06:58 AM

Seen: 1241 times

Last Updated: May 24 '11 at 07:16 AM