G2A Many GEOs
SHARE
TWEET

Untitled

a guest Apr 7th, 2020 188 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. float xInput = Input.GetAxis("Horizontal")
  2. float zInput = Input.GetAxis("Vertical");
  3.  
  4. Vector3 dir = new Vector3(xInput, 0, zInput) * movementSpeed;
  5. dir.y = rb.velocity.y;
  6.  
  7. rb.velocity = dir;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top