NativeCapsuleColliderStatus.cs 663 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using kt.Utility;
  3. using UnityEngine;
  4. namespace kt.Physics
  5. {
  6. [Serializable]
  7. public class NativeCapsuleColliderStatus : NativeColliderStatus
  8. {
  9. public NativeCapsuleColliderStatus()
  10. {
  11. this.colliderType = NativeColliderStatus.ColliderType.Capsule;
  12. }
  13. [Header("コライダーの方向")]
  14. public MathUtility.VectorType direction = MathUtility.VectorType.Y;
  15. [Header("コライダー方向を反転させるか")]
  16. public bool isDirectionInverse;
  17. [Header("始点側の半径")]
  18. public float startRadius = 0.5f;
  19. [Header("終点側の半径")]
  20. public float endRadius = 0.5f;
  21. [Header("長さ")]
  22. public float height;
  23. }
  24. }