- Home /
I'm doing the Roll-A-Ball tutorial and I entered the Player Controller script exactly as the tutorial has it, but I put mine in Unitron and errors are occurring that I don't know how to fix.
Answer by GameVortex · Nov 18, 2013 at 01:52 PM
On line 14 of your script you should add your variable "movement" instead of the type "Vector3":
rigidbody.AddForce(movement);
I did this and it seemed to fix the errors I had, but now it is saying the referenced script on this behavior is missing for "Ground" and "Player" in the hierarchy.
That as the message says means that your objects are missing some scripts. Click on the objects in the hierarchy and check their inspector, and add any scripts that has gone missing.
Answer by meat5000 · Nov 18, 2013 at 01:36 PM
You need to add some Vector to your Vector3
Vector3(x,y,z)
Looking at it, you've simply dropped the wrong word into the function, putting in the Type rather than the actual variable you've created of that type.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Error CS1502 Help! 1 Answer
Error CS1502 help! 1 Answer
issues with animation :( 1 Answer