源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
693 B

  1. using UnityEngine;
  2. public class DynamicBoneColliderBase : MonoBehaviour
  3. {
  4. public enum Direction
  5. {
  6. X, Y, Z
  7. }
  8. #if UNITY_5
  9. [Tooltip("The axis of the capsule's height.")]
  10. #endif
  11. public Direction m_Direction = Direction.Y;
  12. #if UNITY_5
  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
  22. [Tooltip("Constrain bones to outside bound or inside bound.")]
  23. #endif
  24. public Bound m_Bound = Bound.Outside;
  25. public virtual void Collide(ref Vector3 particlePosition, float particleRadius)
  26. {
  27. }
  28. }