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

What is the error?

$
0
0
the console is saying UnityEngine.Vector3' does not contain a constructor that takes `4' arguments code: using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { public float speed; private Rigidbody rb; void Start () { rb = GetComponent (); } void FixedUpdate () { float moveHorizontal = Input.GetAxis ("Horizontal"); float moveVertical = Input.GetAxis ("Vertical"); **Vector3 movement = new Vector3 (moveHorizontal, 0,0f, moveVertical);** rb.AddForce (movement * speed); }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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