diff options
author | chai <215380520@qq.com> | 2023-10-18 10:16:32 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-10-18 10:16:32 +0800 |
commit | 4ccd4bc6d126e0e0f51a50aa10c85b9bf48b1210 (patch) | |
tree | 9ac931da935b59a8d7c57ff0b6d90b88a0e5a479 /ActiveRagdoll/Assets/Scripts/JointMotionInfo.cs |
+ init
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; + +} |