using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Magnus : MonoBehaviour {

	public float magnusConstant = 1f;

	private Rigidbody rb;
	// Use this for initialization
	void Start () {
		rb = GetComponent<Rigidbody>();
	}
	
	// Update is called once per frame
	void FixedUpdate () {
		rb.AddForce(magnusConstant * Vector3.Cross(rb.angularVelocity, rb.velocity) * Time.deltaTime);
	}
}
