How to rotate 3d child in c#

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 12bits

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?)

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?

vspin | 2018-09-11 02:32