diff options
Diffstat (limited to 'ActiveRagdoll/Assets/Scripts/JointMotionInfo.cs')
-rw-r--r-- | ActiveRagdoll/Assets/Scripts/JointMotionInfo.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ActiveRagdoll/Assets/Scripts/JointMotionInfo.cs b/ActiveRagdoll/Assets/Scripts/JointMotionInfo.cs new file mode 100644 index 0000000..7c7ed4a --- /dev/null +++ b/ActiveRagdoll/Assets/Scripts/JointMotionInfo.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +[Serializable] +public class JointMotionInfo +{ + public enum MotionType + { + Torque, // drived by torque + Force, // drived by force + } + + public enum MoveDirection + { + FollowHip, // 和躯干方向一致 + Swing, // 单独摆动 + } + + public MotionType type; + public MoveDirection direction; + + public float forceMultiplier; + +} |