diff options
author | chai <chaifix@163.com> | 2022-07-08 09:22:29 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-07-08 09:22:29 +0800 |
commit | d4bc85c8642cfd0c98ef73710aa9202a7d774852 (patch) | |
tree | f7c17b4c1915a14ed60f2b4a253115452df041d0 /Other/Malenia/Assets/DynamicBone/Scripts/DynamicBoneColliderBase.cs | |
parent | 8110c37b5890035ef73f936b3fc5964bf49bcf11 (diff) |
+ Malenia test
Diffstat (limited to 'Other/Malenia/Assets/DynamicBone/Scripts/DynamicBoneColliderBase.cs')
-rw-r--r-- | Other/Malenia/Assets/DynamicBone/Scripts/DynamicBoneColliderBase.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Other/Malenia/Assets/DynamicBone/Scripts/DynamicBoneColliderBase.cs b/Other/Malenia/Assets/DynamicBone/Scripts/DynamicBoneColliderBase.cs new file mode 100644 index 00000000..51b9fdfd --- /dev/null +++ b/Other/Malenia/Assets/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; + } +} |