diff options
author | chai <chaifix@163.com> | 2020-10-14 10:15:19 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-14 10:15:19 +0800 |
commit | 4056f06baea18d3c5ae23c4a022fc6ae6b135bb2 (patch) | |
tree | ec33414096256b2df270ef43452ee21be55179df /Assets/ThirdParty/DynamicBone/Scripts/DynamicBoneColliderBase.cs | |
parent | 104ca96a6581bddf48b769abdcb84842459260c3 (diff) |
+dynamic bone
Diffstat (limited to 'Assets/ThirdParty/DynamicBone/Scripts/DynamicBoneColliderBase.cs')
-rw-r--r-- | Assets/ThirdParty/DynamicBone/Scripts/DynamicBoneColliderBase.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Assets/ThirdParty/DynamicBone/Scripts/DynamicBoneColliderBase.cs b/Assets/ThirdParty/DynamicBone/Scripts/DynamicBoneColliderBase.cs new file mode 100644 index 00000000..9e921457 --- /dev/null +++ b/Assets/ThirdParty/DynamicBone/Scripts/DynamicBoneColliderBase.cs @@ -0,0 +1,35 @@ +using UnityEngine;
+
+public class DynamicBoneColliderBase : MonoBehaviour
+{
+ public enum Direction
+ {
+ X, Y, Z
+ }
+
+#if UNITY_5_3_OR_NEWER
+ [Tooltip("The axis of the capsule's height.")]
+#endif
+ public Direction m_Direction = Direction.Y;
+
+#if UNITY_5_3_OR_NEWER
+ [Tooltip("The center of the sphere or capsule, in the object's local space.")]
+#endif
+ public Vector3 m_Center = Vector3.zero;
+
+ public enum Bound
+ {
+ Outside,
+ Inside
+ }
+
+#if UNITY_5_3_OR_NEWER
+ [Tooltip("Constrain bones to outside bound or inside bound.")]
+#endif
+ public Bound m_Bound = Bound.Outside;
+
+ public virtual bool Collide(ref Vector3 particlePosition, float particleRadius)
+ {
+ return false;
+ }
+}
|