0 votes

I have the following function

private void look()
{
    GetChild(1).RotateY(mouseMove.x);
    GetChild(1).GetChild(0).RotateX(mouseMove.y);
    mouseMove = new Vector2();
}

but I keep getting an error

error CS1061: 'Node' does not contain a definition for 'RotateY' and no extension method 'RotateY' accepting a first argument of type 'Node' could be found (are you missing a using directive or an assembly reference?)
in Engine by (32 points)

What using directives do you have? Do you have the follow?

using Godot;

I started out with C# and just learned GDScript, as C# had too many issues as it's not fully supported. It's been a while since I used C# with Godot, so I assume your methods are correct.

Also, do you have Mono SDK 5.12.0?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.