Stuck at Vector3

Hey there, new to all this, getting an error with the code.

image

Tried to mess around with the line to reference the script/component - No idea what I’m doing:

image

Always getting this error:

image

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 :slight_smile:

Ah wow, it’s the most simplest of changes! Thanks, I’m trying to be more thorough going forward.

1 Like

You’re very welcome Benjamin :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms