DynamicBoneColliderBase.cs 748 B

1234567891011121314151617181920212223242526272829303132333435
  1. using UnityEngine;
  2. public class DynamicBoneColliderBase : MonoBehaviour
  3. {
  4. public enum Direction
  5. {
  6. X, Y, Z
  7. }
  8. #if UNITY_5_3_OR_NEWER
  9. [Tooltip("The axis of the capsule's height.")]
  10. #endif
  11. public Direction m_Direction = Direction.Y;
  12. #if UNITY_5_3_OR_NEWER
  13. [Tooltip("The center of the sphere or capsule, in the object's local space.")]
  14. #endif
  15. public Vector3 m_Center = Vector3.zero;
  16. public enum Bound
  17. {
  18. Outside,
  19. Inside
  20. }
  21. #if UNITY_5_3_OR_NEWER
  22. [Tooltip("Constrain bones to outside bound or inside bound.")]
  23. #endif
  24. public Bound m_Bound = Bound.Outside;
  25. public virtual bool Collide(ref Vector3 particlePosition, float particleRadius)
  26. {
  27. return false;
  28. }
  29. }