Advertisement
Transformator

BulletMove.js

Dec 20th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma strict
  2.  
  3. var distance : float = 1.5f;
  4.  
  5. function Update () {
  6.     transform.position = transform.position + transform.forward * distance * Time.deltaTime;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement