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

"Assets\MOVE.cs(19,25): error CS0019: Operator '+' cannot be applied to operands of type 'Vector2' and 'float'",Operator '+' cannot be applied to operands of type 'Vector2' and 'float'

$
0
0
im following a brackeys tutorial and my code is identical apart from variable names but im getting the above error public float go = 5; public Rigidbody2D rb; Vector2 move; // Update is called once per frame void Update() { move.x = Input.GetAxisRaw("Horizontal"); move.y = Input.GetAxisRaw("Vertical"); } void FixedUpdate() { rb.MovePosition(rb.position + move + go * Time.deltaTime);

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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