Advertisement
Guest User

Untitled

a guest
May 26th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. public Rigidbody rb;
  2.  
  3. //عند start حط:
  4. rb = GetComponent<Rigidbody>();
  5. //و بعدين في المكان الانت عايز تعمل في addforce حط:
  6. rb.velocity.x = 400;
  7. rb.velocity.y = 400;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement