Beginner Scripting: Translate and Rotate

 



In this weeks coding tutorial it was a look at moving and rotating an object and the different coding to use in order to do so. A translate takes a Vector 3 and helps to move an object. This moves the object in  metres per second instead of metres per frame. If you multiply this by deltaTime it can move the object in seconds rather then frames. Also When rotating an item use the transform.Rotate Vector 3 as well as the up and turnspeed coding. Using a negative (-) before code can give you the opposite effect

Comments

Popular Posts