Hi!
I am remaking the script from Unity’s Sample Assets to the first person character in JavaScript. But I get a problem that I can’t fix! So if anyone could fix it, please tell me.
So I need to convert this line to JavaScript.
Vector3 velocityChange = velocity - prevVelocity;
The error I can is that it is missing a ‘;’