rabidus-test/Assets/Plugins/QFSW/Quantum Console/Source/Scripts/Parsing/Parsers/QuaternionParser.cs

14 lines
344 B
C#
Raw Permalink Normal View History

2023-08-22 15:41:12 +03:00
using UnityEngine;
namespace QFSW.QC.Parsers
{
public class QuaternionParser : BasicCachedQcParser<Quaternion>
{
public override Quaternion Parse(string value)
{
Vector4 vector = ParseRecursive<Vector4>(value);
return new Quaternion(vector.x, vector.y, vector.z, vector.w);
}
}
}