Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ball_test : MonoBehaviour {
- private Rigidbody rb;
- void Start ()
- {
- rb = GetComponent<Rigidbody> ();
- }
- void FixedUpdate ()
- {
- Vector3 movement = new Vector3 (1f, 0.0f, 1f);
- rb.AddForce (movement);
- }
- }
Add Comment
Please, Sign In to add comment