Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Assets/Scripts/PlayerController.cs(11,48): error CS0103: The name `movementHorizontal' does not exist in the current context

$
0
0
I am new to programming and I am getting this error when I try to enter Playmode, can a kind soul please tell me what I am doing wrong/how to fix it? thanks in advance! using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { void FixedUpdate () { float moveHorizontal = Input.GetAxis("Horizontal"); float moveVertical = Input.GetAxis("Vertical"); Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical); rigidbody.AddForce(Vector3); } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>