- Home /
Question by
Edson · Mar 31, 2014 at 01:02 PM ·
errorraycastscript error
raycast error
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;
}
}
Comment
Your answer
Follow this Question
Related Questions
Line Renderer not showing 0 Answers
GetComponent Picking up multiple scripts from differrent objects? 1 Answer
Raycast does not go in the right direction,Raycast not pointing in the correct direction 0 Answers
Raycast Having Pointless Errors 1 Answer
Error when creating scripts & installation problems 0 Answers