I’m not sure how you used vector3 in javscript. I have this line Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
but the console tells me to add a ; to the end. So I’m not sure what to do
Hi,What you have written is C# code not Java script.
Vector3 movement = Vector3 (moveHorizontal, 0.0f, moveVertical); //C# code
Writing this line in a Java script will give you compiler errors.Java script doesnt use the ‘new’ keyword or ‘f’ right after floating point values 0.0f should be 0.0
The Javascript code will be like this
var movement : Vector3 = Vector3(moveHorizontal,0.0,moveVertical); //Java script code
Cheers ![]()