Editor/WeaponImporter/Tool/Engine/BuiltInGrips.cs
namespace WeaponImporter.Tool;
/// <summary>
/// Grip presets shipped with the importer, captured from open-licence first-person animation
/// packs (see README credits). Generated by dev/WeaponImporter.Tests/BuiltInGripsGenerator.cs;
/// kept as source so the library needs no data files at runtime.
/// </summary>
public static class BuiltInGrips
{
public const string Json = @"[
{
""Name"": ""AK-74 (first person) \u00B7 right"",
""Source"": ""\u0022FPS AK-74m animations\u0022 by Cransh, CC-BY-4.0"",
""Side"": ""Right"",
""Style"": ""Wrap"",
""Palm"": [
-0.21685363,
0.24778111,
0.117897764
],
""Orientation"": [
0.54129326,
-0.3987288,
0.4542242,
-0.5845488
],
""Directions"": {
""Thumb"": [
0.63804275,
0.6942943,
0.33295208,
0.9264066,
0.3411738,
0.15928334,
0.9264066,
0.3411738,
0.15928331
],
""Index"": [
0.97303915,
0.22906889,
0.026874194,
0.9371261,
0.3481497,
0.024216706,
0.93712616,
0.34814972,
0.024216676
],
""Middle"": [
0.7635799,
0.61251384,
-0.20438331,
0.03134125,
0.9962124,
-0.08110789,
0.031340953,
0.9962124,
-0.08110778
],
""Ring"": [
0.7943668,
0.59417975,
-0.12622197,
-0.06070585,
0.9943864,
0.08666353,
-0.06070572,
0.99438643,
0.086663395
],
""Pinky"": [
0.79727346,
0.6031869,
-0.022817964,
0.13298786,
0.97028965,
0.20211966,
0.13298818,
0.9702896,
0.20211966
]
},
""WeaponType"": ""Rifle""
},
{
""Name"": ""AK-74 (first person) \u00B7 left"",
""Source"": ""\u0022FPS AK-74m animations\u0022 by Cransh, CC-BY-4.0"",
""Side"": ""Left"",
""Style"": ""Cradle"",
""Palm"": [
-0.20595458,
0.016000982,
0.113755085
],
""Orientation"": [
-0.80909944,
-0.12014536,
0.18176872,
0.5457868
],
""Directions"": {
""Thumb"": [
0.69909,
0.5097619,
-0.501414,
0.8245201,
0.4467241,
-0.3472813,
0.8245201,
0.44672412,
-0.34728125
],
""Index"": [
0.9241414,
0.17367288,
0.3402947,
0.89073247,
0.31763384,
0.32512218,
0.8907324,
0.317634,
0.32512227
],
""Middle"": [
0.8958153,
0.33235422,
0.29505205,
0.6341079,
0.743513,
0.21235739,
0.634108,
0.74351287,
0.21235734
],
""Ring"": [
0.8457776,
0.4977336,
0.19215004,
0.13906185,
0.98987985,
0.028280184,
0.13906161,
0.9898799,
0.028280172
],
""Pinky"": [
0.63530046,
0.7659571,
0.09850433,
-0.29930398,
0.9246807,
-0.23533556,
-0.2993038,
0.9246807,
-0.23533545
]
},
""WeaponType"": ""Rifle""
},
{
""Name"": ""Uzi (first person) \u00B7 right"",
""Source"": ""Uzi first-person animations by 1Matzh"",
""Side"": ""Right"",
""Style"": ""Wrap"",
""Palm"": [
-0.23954436,
0.25670823,
0.01567302
],
""Orientation"": [
-0.6363334,
0.2761651,
-0.46779382,
0.5477059
],
""Directions"": {
""Thumb"": [
0.871179,
0.4748856,
-0.12462307,
0.8887276,
0.3952979,
-0.23216996,
0.8887276,
0.39529768,
-0.23217005
],
""Index"": [
0.98904425,
0.11524666,
-0.09224774,
0.4908976,
0.84187347,
-0.22420658,
0.4908973,
0.84187365,
-0.22420655
],
""Middle"": [
0.6676163,
0.60718954,
-0.4308241,
-0.5987688,
0.79672736,
0.08186344,
-0.59876865,
0.7967274,
0.0818634
],
""Ring"": [
0.62776995,
0.68354994,
-0.37237677,
-0.5002942,
0.8619599,
0.08204282,
-0.500294,
0.8619599,
0.08204284
],
""Pinky"": [
0.73244727,
0.6569236,
-0.1788083,
0.13267002,
0.9899125,
-0.049719814,
0.13267054,
0.9899124,
-0.049719706
]
},
""WeaponType"": ""Smg""
},
{
""Name"": ""Uzi (first person) \u00B7 left"",
""Source"": ""Uzi first-person animations by 1Matzh"",
""Side"": ""Left"",
""Style"": ""Cradle"",
""Palm"": [
-0.27904075,
-0.0528938,
0.1627435
],
""Orientation"": [
0.66920006,
0.11822077,
-0.16324258,
-0.7152251
],
""Directions"": {
""Thumb"": [
0.95815724,
0.23623316,
-0.16164333,
0.94813514,
0.21088736,
-0.2378366,
0.9481351,
0.21088766,
-0.23783667
],
""Index"": [
0.8309968,
0.33160543,
0.44663435,
-0.35073477,
0.85627484,
0.37918139,
-0.3507347,
0.85627484,
0.37918139
],
""Middle"": [
0.77723044,
0.38221577,
0.49982405,
-0.4313805,
0.8973259,
-0.093366124,
-0.43138018,
0.897326,
-0.09336614
],
""Ring"": [
0.69433063,
0.56967634,
0.43974286,
-0.36678955,
0.8908167,
-0.2681625,
-0.3667896,
0.8908166,
-0.26816252
],
""Pinky"": [
0.7428318,
0.66165394,
0.10205394,
-0.36805674,
0.89733946,
-0.24354905,
-0.3680566,
0.8973396,
-0.24354899
]
},
""WeaponType"": ""Smg""
}
]";
}