导入角色动画,和增加角色控制
This commit is contained in:
32
Assets/KINEMATION/KAnimationCore/Runtime/Rig/KPose.cs
Normal file
32
Assets/KINEMATION/KAnimationCore/Runtime/Rig/KPose.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using KINEMATION.KAnimationCore.Runtime.Core;
|
||||
|
||||
namespace KINEMATION.KAnimationCore.Runtime.Rig
|
||||
{
|
||||
// Represents the space we will modify bone transform in.
|
||||
public enum ESpaceType
|
||||
{
|
||||
BoneSpace,
|
||||
ParentBoneSpace,
|
||||
ComponentSpace,
|
||||
WorldSpace
|
||||
}
|
||||
|
||||
// Whether the operation is additive or absolute.
|
||||
public enum EModifyMode
|
||||
{
|
||||
Add,
|
||||
Replace,
|
||||
Ignore
|
||||
}
|
||||
|
||||
// Represents the pose for the specific rig element.
|
||||
[Serializable]
|
||||
public struct KPose
|
||||
{
|
||||
public KRigElement element;
|
||||
public KTransform pose;
|
||||
public ESpaceType space;
|
||||
public EModifyMode modifyMode;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user