导入角色动画,和增加角色控制
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace KINEMATION.KAnimationCore.Runtime.Rig
|
||||
{
|
||||
public class KVirtualElement : MonoBehaviour
|
||||
{
|
||||
public Transform targetBone;
|
||||
|
||||
public void Animate()
|
||||
{
|
||||
transform.position = targetBone.position;
|
||||
transform.rotation = targetBone.rotation;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user