summaryrefslogtreecommitdiff
path: root/ActiveRagdoll/Assets/Scripts/JointAnimation.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ActiveRagdoll/Assets/Scripts/JointAnimation.cs')
-rw-r--r--ActiveRagdoll/Assets/Scripts/JointAnimation.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/ActiveRagdoll/Assets/Scripts/JointAnimation.cs b/ActiveRagdoll/Assets/Scripts/JointAnimation.cs
new file mode 100644
index 0000000..a38dc50
--- /dev/null
+++ b/ActiveRagdoll/Assets/Scripts/JointAnimation.cs
@@ -0,0 +1,48 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class JointAnimation : MonoBehaviour
+{
+ #region 序列化
+ public new string name;
+ public JointMotion[] motions;
+ public Rigidbody hips;
+
+ //public bool auto = false;
+ #endregion
+
+ #region 公共字段
+
+ #endregion
+
+ #region 私有字段
+
+ #endregion
+
+ private void Awake()
+ {
+ // 私有字段赋值
+
+ // 公共字段赋值
+
+ // 初始化
+ }
+
+ public void Start()
+ {
+ }
+
+ private void FixedUpdate()
+ {
+ }
+
+ public void Animate()
+ {
+ for(int i = 0; i < motions.Length; ++i)
+ {
+ motions[i].Animate(hips);
+ }
+ }
+
+}