projectEli/Assets/NeoFPS/Core/Weapons/Shared/IPoseHandler.cs
2022-11-06 20:28:33 -05:00

16 lines
680 B
C#

using UnityEngine;
namespace NeoFPS
{
public interface IPoseHandler
{
void SetPose(Vector3 position, Quaternion rotation, float duration);
void SetPose(Vector3 position, CustomPositionInterpolation posInterp, Quaternion rotation, CustomRotationInterpolation rotInterp, float duration);
void ResetPose(float duration);
void ResetPose(CustomPositionInterpolation posInterp, CustomRotationInterpolation rotInterp, float duration);
}
public delegate Vector3 CustomPositionInterpolation(Vector3 from, Vector3 to, float lerp);
public delegate Quaternion CustomRotationInterpolation(Quaternion from, Quaternion to, float lerp);
}