- Home /
Question by
pyruss · Sep 01, 2011 at 12:28 PM ·
ontriggerentertransform.position
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
Comment
Answer by BiG · Sep 01, 2011 at 12:39 PM
while (true){
yield WaitForSeconds(60);
transform.Translate(8, 0, 0);
}
Try adapting it to your script! Regards.