SAMeshColliderBuilder.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. using System;
  2. using UnityEngine;
  3. public class SAMeshColliderBuilder : MonoBehaviour
  4. {
  5. public SAMeshColliderCommon.SplitProperty splitProperty
  6. {
  7. get
  8. {
  9. return (this.meshColliderBuilderProperty == null) ? null : this.meshColliderBuilderProperty.splitProperty;
  10. }
  11. }
  12. public SAColliderBuilderCommon.ReducerProperty reducerProperty
  13. {
  14. get
  15. {
  16. return (this.meshColliderBuilderProperty == null) ? null : this.meshColliderBuilderProperty.reducerProperty;
  17. }
  18. }
  19. public SAColliderBuilderCommon.ColliderProperty colliderProperty
  20. {
  21. get
  22. {
  23. return (this.meshColliderBuilderProperty == null) ? null : this.meshColliderBuilderProperty.colliderProperty;
  24. }
  25. }
  26. public SAColliderBuilderCommon.RigidbodyProperty rigidbodyProperty
  27. {
  28. get
  29. {
  30. return (this.meshColliderBuilderProperty == null) ? null : this.meshColliderBuilderProperty.rigidbodyProperty;
  31. }
  32. }
  33. public bool splitMaterialEnabled
  34. {
  35. get
  36. {
  37. return this.splitProperty != null && this.splitProperty.splitMaterialEnabled;
  38. }
  39. }
  40. public bool splitPrimitiveEnabled
  41. {
  42. get
  43. {
  44. return this.splitProperty != null && this.splitProperty.splitPrimitiveEnabled;
  45. }
  46. }
  47. public bool splitPolygonNormalEnabled
  48. {
  49. get
  50. {
  51. return this.splitProperty != null && this.splitProperty.splitPolygonNormalEnabled;
  52. }
  53. }
  54. public float splitPolygonNormalAngle
  55. {
  56. get
  57. {
  58. return (this.splitProperty == null) ? 0f : this.splitProperty.splitPolygonNormalAngle;
  59. }
  60. }
  61. public SAMeshColliderCommon.SAMeshColliderBuilderProperty meshColliderBuilderProperty = new SAMeshColliderCommon.SAMeshColliderBuilderProperty();
  62. [NonSerialized]
  63. public SAMeshColliderCommon.SAMeshColliderBuilderProperty edittingMeshColliderBuilderProperty;
  64. [NonSerialized]
  65. public bool cleanupModified;
  66. [NonSerialized]
  67. public bool isDebug;
  68. }