- Home /
Question by
adamchakov · Nov 25, 2013 at 07:50 PM ·
objectspeedmovingspecific
moving an object with a specific speed
hey everyone , what i wanted is when the game starts , i want an object to move on the Z axis with a specific speed ,but i don't know how i shall code it , please help me thanks !
Comment
Best Answer
Answer by N13s · Nov 25, 2013 at 08:02 PM
In the update function:
transform.position.z += 5; or enter a different speed in stead of 5.
Cheers