Add Rotate Vector node to Visject Surface graphs

This commit is contained in:
Wojciech Figat
2022-03-28 15:02:32 +02:00
parent 446a6f22fa
commit c41a446ae9
5 changed files with 33 additions and 6 deletions

View File

@@ -427,6 +427,20 @@ namespace FlaxEditor.Surface.Archetypes
NodeElementArchetype.Factory.Output(0, string.Empty, typeof(float), 4),
}
},
new NodeArchetype
{
TypeID = 49,
Title = "Rotate Vector",
Description = "Rotates given vector using the Quaternion",
Flags = NodeFlags.AllGraphs,
Size = new Vector2(200, 40),
Elements = new[]
{
NodeElementArchetype.Factory.Input(0, "Quaternion", true, typeof(Quaternion), 0),
NodeElementArchetype.Factory.Input(1, "Vector", true, typeof(Vector3), 1),
NodeElementArchetype.Factory.Output(0, string.Empty, typeof(Vector3), 2),
}
},
};
}
}