Hi, I’m getting the error message `Quarternion’ does not exist in the current context for the following code. Any ideas what I’m doing wrong? The error is on line 37 below:
Thanks for any help!
Vince
Hi, I’m getting the error message `Quarternion’ does not exist in the current context for the following code. Any ideas what I’m doing wrong? The error is on line 37 below:
Thanks for any help!
Vince
the intellisense should have popped up there to help you out, but you have to remove the r, as in its
Quaternion
it might not have highlighted, depending on what the syntax highlighting color scheme you have.
Thanks you so much! I checked that line so many times and never caught that. For some reason MonoDevelop stopped suggesting autocompletion/intellisense.
Thanks again for catching this for me!
Vince
Glad you sorted your problem.
Just a thought, because I’m more about descriptive variables than comments.
Rather than using variable names like padding and distance and then putting a comment when you initialise it, especially when it’s public. Call it something descriptive so you know what it is straight away like ScreenSidesPadding or disanceFromCameraToShip. That way you know what it is, when it’s private, further down the code you won’t have to scroll up to see what distance means or more importantly when you’re calling it from another class.
The problem I’ve found as a developer (applications not games) is that comments get old. So you’ll change the meaning of the variable over time but not the comment. Especially annoying when working with someone else’s old code.
Stephen,
Great advice. Thanks a lot!
Vince