|
how would i write a transform.position script using Vector 3,, i already know how to do rotations but i have played around with the script and i cant find how to do it
(comments are locked)
|
|
You put in transform.position = Vector3() or you can put a Vector3 into other transform functions such as Translate(). Note below, you could also create a variable for a Vector3 and insert that into any of these places. So it might say something like:
The reference also has several examples of Vector3's to check out. thanks this is really helpful
Apr 27 '10 at 09:31 PM
tatty
Im having trouble. Im trying to fire a bullet from a moving enemy. So I instantiate the bullet at the enemies current position, but for some reason, my transform.Translate(Vector3(1,0,0)*Time.deltaTime); sends the bullet in the negative X direction instead of positive. Is it because the enemy is moving?
Jan 24 at 05:21 AM
Folio
(comments are locked)
|
