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

raycast error

$
0
0
The script is attached to a cube that transform.translate. It is a simpler version of my script, Error(line 7): No appropriate version of 'UnityEngine.Physics.Raycast' for the argument list '(UnityEngine.Vector3, UnityEngine.Vector3, System.Type, float)' was found var canMove : boolean = false; var range : float = 100.0; function Update () { var hit = RaycastHit; if (Physics.Raycast(transform.position, Vector3.forward, hit, range)) { canMove = false; } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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