52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
using UnityEngine;
|
|
|
|
namespace kTools.Motion
|
|
{
|
|
internal sealed class MotionData
|
|
{
|
|
#region Fields
|
|
bool m_IsFirstFrame;
|
|
int m_LastFrameActive;
|
|
Matrix4x4 m_ViewProjectionMatrix;
|
|
Matrix4x4 m_PreviousViewProjectionMatrix;
|
|
#endregion
|
|
|
|
#region Constructors
|
|
internal MotionData()
|
|
{
|
|
// Set data
|
|
m_IsFirstFrame = true;
|
|
m_LastFrameActive = -1;
|
|
m_ViewProjectionMatrix = Matrix4x4.identity;
|
|
m_PreviousViewProjectionMatrix = Matrix4x4.identity;
|
|
}
|
|
#endregion
|
|
|
|
#region Properties
|
|
internal bool isFirstFrame
|
|
{
|
|
get => m_IsFirstFrame;
|
|
set => m_IsFirstFrame = value;
|
|
}
|
|
|
|
internal int lastFrameActive
|
|
{
|
|
get => m_LastFrameActive;
|
|
set => m_LastFrameActive = value;
|
|
}
|
|
|
|
internal Matrix4x4 viewProjectionMatrix
|
|
{
|
|
get => m_ViewProjectionMatrix;
|
|
set => m_ViewProjectionMatrix = value;
|
|
}
|
|
|
|
internal Matrix4x4 previousViewProjectionMatrix
|
|
{
|
|
get => m_PreviousViewProjectionMatrix;
|
|
set => m_PreviousViewProjectionMatrix = value;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|