|
Hello. EDIT: I just remembered that the script will also need to have the object turn so it is always facing towards you. The objects are pieces of text, and I can't see some of them because they are either reversed or I am seeing the side. 2nd EDIT:
(comments are locked)
|
|
Look in to the Vector3.moveTowards() function. it takes a current position, a target position and a float to determine the rate at which your object moves.
Also Lerping could do it for you Hi. Thank you for your answer. The problem is that this script does not turn the gameobject to face forward towards the specified target. Any ideas on a second script to do that? Thanks!
Apr 04 '11 at 03:30 AM
Keavon
sorry I forgot to respond to the edit. you can also call a transform.lookAt() that will keep your objects looking at 1 game object all the time. private var targ: GameObject; function Update(){ transform.LookAt(targ.transform); }
Apr 04 '11 at 02:38 PM
Kobby
sorry for the unformatted code
Apr 04 '11 at 02:38 PM
Kobby
(comments are locked)
|
