import UnityEngine
class NewBehaviourScript (MonoBehaviour):
speed as double
def FixedUpdate():
moveHorizontal as double = Input.GetAxis("Horizontal")
moveVertical as double = Input.GetAxis("Vertical")
movement as Vector3 = Vector3(moveHorizontal,0,0,moveVertical)
rigidbody.AddForce(movement * speed * Time.deltaTime)
I get this error:
Can somebody point out what I’m doing wrong? I’m trying to make ball roll on a playing field.