Hey there, new to all this, getting an error with the code.
Tried to mess around with the line to reference the script/component - No idea what I’m doing:
Always getting this error:
Any help with this one? Much appreciated.
Hey there, new to all this, getting an error with the code.
Tried to mess around with the line to reference the script/component - No idea what I’m doing:
Always getting this error:
Any help with this one? Much appreciated.
Hi,
The issue here is that your ProcessInput
method has been declared as static, as such, it doesn’t have any concept of your instance based rigidBody
variable declared above.
Remove the static keyword from your method definition and you will find the error goes away.
Hope this helps
Ah wow, it’s the most simplest of changes! Thanks, I’m trying to be more thorough going forward.
You’re very welcome Benjamin
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.