summaryrefslogtreecommitdiff
path: root/VRCSDK3AvatarsLegacy/Assets/Resources/DynamicBone/Scripts/DynamicBoneColliderBase.cs
blob: dd1cf1b503425c53e9d41a66db203d4db8ed0ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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)
    {
    }
}