I get this error error CS0120: An object reference is required to access non-static member `UnityEngine.Rigidbody.MovePosition(UnityEngine.Vector3)
from this script:
using UnityEngine;
using System.Collections;
public class Paddle_Behavior : MonoBehaviour
{
public int spin = 0;
// Use this for initialization
void Start ()
{
//deterime what paddle they are using
}
// Update is called once per frame
void FixedUpdate ()
{
//move the paddle to the mouse point
Rigidbody.MovePosition(Vector3(Input.mousePosition.x,Input.mousePosition.y,-10));
}
}
Anyone have any idea why?