From eb84bb298d2b95aec7b2ae12cbf25ac64f25379a Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Sun, 6 Nov 2022 15:12:42 -0500 Subject: move to self host --- .../DynamicBone/Scripts/DynamicBoneColliderBase.cs | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 VRCSDK3AvatarsLegacy/Assets/Resources/DynamicBone/Scripts/DynamicBoneColliderBase.cs (limited to 'VRCSDK3AvatarsLegacy/Assets/Resources/DynamicBone/Scripts/DynamicBoneColliderBase.cs') diff --git a/VRCSDK3AvatarsLegacy/Assets/Resources/DynamicBone/Scripts/DynamicBoneColliderBase.cs b/VRCSDK3AvatarsLegacy/Assets/Resources/DynamicBone/Scripts/DynamicBoneColliderBase.cs new file mode 100644 index 00000000..dd1cf1b5 --- /dev/null +++ b/VRCSDK3AvatarsLegacy/Assets/Resources/DynamicBone/Scripts/DynamicBoneColliderBase.cs @@ -0,0 +1,34 @@ +using UnityEngine; + +public class DynamicBoneColliderBase : MonoBehaviour +{ + public enum Direction + { + X, Y, Z + } + +#if UNITY_5 + [Tooltip("The axis of the capsule's height.")] +#endif + public Direction m_Direction = Direction.Y; + +#if UNITY_5 + [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 + [Tooltip("Constrain bones to outside bound or inside bound.")] +#endif + public Bound m_Bound = Bound.Outside; + + public virtual void Collide(ref Vector3 particlePosition, float particleRadius) + { + } +} -- cgit v1.2.3-freya