x


Object moves X units over Y time

Hi probably a very simple question

What would be the code for

ontriger object moves (x axis) 8 unit to righ over 60 second period?

best regards

more ▼

asked Sep 01 '11 at 12:28 PM

pyruss gravatar image

pyruss
1 1 1 1

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

1 answer: sort voted first
while (true){
   yield WaitForSeconds(60);
   transform.Translate(8, 0, 0);
}

Try adapting it to your script! Regards.

more ▼

answered Sep 01 '11 at 12:39 PM

BiG gravatar image

BiG
4.7k 4 13 49

Thank you, that worked 100%

Sep 01 '11 at 01:24 PM pyruss
(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:

x337
x109

asked: Sep 01 '11 at 12:28 PM

Seen: 759 times

Last Updated: Sep 01 '11 at 01:24 PM