- Home /
The question is answered, right answer was accepted
error CS0019: Operator `>' cannot be applied to operands of type `method group' and `method group'
Hello guys, i'm getting this error:
error CS0019: Operator >' cannot be applied to operands of type
method group' and `method group'
while trying to follow up to the "Making an "Angry Birds" style game" tutorial.
Here are the code lines with the error:
if (!rigidbody2D.isKinematic && prevVelocity.SqrMagnitude > rigidbody2D.velocity.SqrMagnitude){
if (catapultToMouse.SqrMagnitude > maxScretchSqr)
Thanks
Answer by robertbu · Jun 22, 2014 at 11:04 PM
Typically (future questions) we would need to see more code to solve a problem. In this case, your problem is that you've misspelled 'sqrMagnitude'. It has a small 's'.
if (!rigidbody2D.isKinematic && prevVelocity.sqrMagnitude > rigidbody2D.velocity.sqrMagnitude){
Follow this Question
Related Questions
Error CS0023: The '!' operator cannot be applied to operand of type 'void' 1 Answer
C# Error help ( error CS0023 The `!’ operator cannot be applied to operand of type `string’ ) ??? 1 Answer
error CS0019: Operator `>' cannot be applied to operands of type `UnityEngine.Vector3' and `int' 0 Answers
`AllItems.AllWeapons()': not all code paths return a value 1 Answer
Operator '||' cannot be applied to operands of type 'bool' and 'UnityEngine.RuntimePlatform' 1 Answer