mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
* get correct Rotation Order for each Euler Rotation * apply requested changes * apply requested changes
22 lines
600 B
C#
22 lines
600 B
C#
using AssetRipper.SourceGenerated.Enums;
|
|
using AssetRipper.SourceGenerated.Subclasses.Vector3Curve;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class Vector3CurveExtensions
|
|
{
|
|
public static void SetValues(this IVector3Curve curve, string path)
|
|
{
|
|
curve.Path = path;
|
|
curve.Curve.SetDefaultRotationOrderAndCurveLoopType();
|
|
}
|
|
|
|
public static void SetValues(this IVector3Curve curve, string path, RotationOrder rotationOrder)
|
|
{
|
|
curve.Path = path;
|
|
curve.Curve.SetDefaultRotationOrderAndCurveLoopType();
|
|
curve.Curve.RotationOrderE = rotationOrder;
|
|
}
|
|
}
|
|
}
|