|
I'm trying to add the accelerometer value and collect the up but keep getting this error: Operator '+' cannot be used with a left hand side of type 'float' and a right hand side of type 'object' Do I need to cast something?
(comments are locked)
|
|
What programming language are you using? You can't just do "y = something", you have to instantiate your variable first.
If you're accumulating your variable, you might also want to make your "y" variable a global variable inside your class. Sorry about that, I figured it was assumed that it was instantiated. I initially was using '+=' but was getting an error that I later discovered was the result of my trying to add and object and a number. Thanks for your help.
May 03 '10 at 12:18 PM
rd42
(comments are locked)
|
