Guest User

Untitled

a guest
Nov 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public class ball_test : MonoBehaviour {
  2.  
  3. private Rigidbody rb;
  4.  
  5. void Start ()
  6. {
  7. rb = GetComponent<Rigidbody> ();
  8. }
  9.  
  10. void FixedUpdate ()
  11. {
  12. Vector3 movement = new Vector3 (1f, 0.0f, 1f);
  13.  
  14. rb.AddForce (movement);
  15. }
  16. }
Add Comment
Please, Sign In to add comment