ParticleVectorFieldSettings.generated.cs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Particles
  7. * @{
  8. */
  9. /// <summary>Settings used for controlling a vector field in a GPU simulated particle system.</summary>
  10. [ShowInInspector]
  11. public partial class ParticleVectorFieldSettings : ScriptObject
  12. {
  13. private ParticleVectorFieldSettings(bool __dummy0) { }
  14. protected ParticleVectorFieldSettings() { }
  15. /// <summary>Vector field resource used for influencing the particles.</summary>
  16. [ShowInInspector]
  17. public RRef<VectorField> VectorField
  18. {
  19. get { return Internal_getvectorField(mCachedPtr); }
  20. set { Internal_setvectorField(mCachedPtr, value); }
  21. }
  22. /// <summary>Intensity of the forces and velocities applied by the vector field.</summary>
  23. [ShowInInspector]
  24. public float Intensity
  25. {
  26. get { return Internal_getintensity(mCachedPtr); }
  27. set { Internal_setintensity(mCachedPtr, value); }
  28. }
  29. /// <summary>
  30. /// Determines how closely does the particle velocity follow the vectors in the field. If set to 1 particles will be
  31. /// snapped to the exact velocity of the value in the field, and if set to 0 the field will not influence particle
  32. /// velocities directly.
  33. /// </summary>
  34. [ShowInInspector]
  35. public float Tightness
  36. {
  37. get { return Internal_gettightness(mCachedPtr); }
  38. set { Internal_settightness(mCachedPtr, value); }
  39. }
  40. /// <summary>
  41. /// Scale to apply to the vector field bounds. This is multiplied with the bounds of the vector field resource.
  42. /// </summary>
  43. [ShowInInspector]
  44. public Vector3 Scale
  45. {
  46. get
  47. {
  48. Vector3 temp;
  49. Internal_getscale(mCachedPtr, out temp);
  50. return temp;
  51. }
  52. set { Internal_setscale(mCachedPtr, ref value); }
  53. }
  54. /// <summary>
  55. /// Amount of to move the vector field by relative to the parent particle system. This is added to the bounds provided in
  56. /// the vector field resource.
  57. /// </summary>
  58. [ShowInInspector]
  59. public Vector3 Offset
  60. {
  61. get
  62. {
  63. Vector3 temp;
  64. Internal_getoffset(mCachedPtr, out temp);
  65. return temp;
  66. }
  67. set { Internal_setoffset(mCachedPtr, ref value); }
  68. }
  69. /// <summary>Initial rotation of the vector field.</summary>
  70. [ShowInInspector]
  71. public Quaternion Rotation
  72. {
  73. get
  74. {
  75. Quaternion temp;
  76. Internal_getrotation(mCachedPtr, out temp);
  77. return temp;
  78. }
  79. set { Internal_setrotation(mCachedPtr, ref value); }
  80. }
  81. /// <summary>
  82. /// Determines the amount to rotate the vector field every second, in degrees, around XYZ axis respectively. Evaluated
  83. /// over the particle system lifetime.
  84. /// </summary>
  85. [ShowInInspector]
  86. public Vector3Distribution RotationRate
  87. {
  88. get { return Internal_getrotationRate(mCachedPtr); }
  89. set { Internal_setrotationRate(mCachedPtr, value); }
  90. }
  91. /// <summary>
  92. /// Determines should the field influence particles outside of the field bounds. If true the field will be tiled
  93. /// infinitely in the X direction.
  94. /// </summary>
  95. [ShowInInspector]
  96. public bool TilingX
  97. {
  98. get { return Internal_gettilingX(mCachedPtr); }
  99. set { Internal_settilingX(mCachedPtr, value); }
  100. }
  101. /// <summary>
  102. /// Determines should the field influence particles outside of the field bounds. If true the field will be tiled
  103. /// infinitely in the Y direction.
  104. /// </summary>
  105. [ShowInInspector]
  106. public bool TilingY
  107. {
  108. get { return Internal_gettilingY(mCachedPtr); }
  109. set { Internal_settilingY(mCachedPtr, value); }
  110. }
  111. /// <summary>
  112. /// Determines should the field influence particles outside of the field bounds. If true the field will be tiled
  113. /// infinitely in the Z direction.
  114. /// </summary>
  115. [ShowInInspector]
  116. public bool TilingZ
  117. {
  118. get { return Internal_gettilingZ(mCachedPtr); }
  119. set { Internal_settilingZ(mCachedPtr, value); }
  120. }
  121. [MethodImpl(MethodImplOptions.InternalCall)]
  122. private static extern RRef<VectorField> Internal_getvectorField(IntPtr thisPtr);
  123. [MethodImpl(MethodImplOptions.InternalCall)]
  124. private static extern void Internal_setvectorField(IntPtr thisPtr, RRef<VectorField> value);
  125. [MethodImpl(MethodImplOptions.InternalCall)]
  126. private static extern float Internal_getintensity(IntPtr thisPtr);
  127. [MethodImpl(MethodImplOptions.InternalCall)]
  128. private static extern void Internal_setintensity(IntPtr thisPtr, float value);
  129. [MethodImpl(MethodImplOptions.InternalCall)]
  130. private static extern float Internal_gettightness(IntPtr thisPtr);
  131. [MethodImpl(MethodImplOptions.InternalCall)]
  132. private static extern void Internal_settightness(IntPtr thisPtr, float value);
  133. [MethodImpl(MethodImplOptions.InternalCall)]
  134. private static extern void Internal_getscale(IntPtr thisPtr, out Vector3 __output);
  135. [MethodImpl(MethodImplOptions.InternalCall)]
  136. private static extern void Internal_setscale(IntPtr thisPtr, ref Vector3 value);
  137. [MethodImpl(MethodImplOptions.InternalCall)]
  138. private static extern void Internal_getoffset(IntPtr thisPtr, out Vector3 __output);
  139. [MethodImpl(MethodImplOptions.InternalCall)]
  140. private static extern void Internal_setoffset(IntPtr thisPtr, ref Vector3 value);
  141. [MethodImpl(MethodImplOptions.InternalCall)]
  142. private static extern void Internal_getrotation(IntPtr thisPtr, out Quaternion __output);
  143. [MethodImpl(MethodImplOptions.InternalCall)]
  144. private static extern void Internal_setrotation(IntPtr thisPtr, ref Quaternion value);
  145. [MethodImpl(MethodImplOptions.InternalCall)]
  146. private static extern Vector3Distribution Internal_getrotationRate(IntPtr thisPtr);
  147. [MethodImpl(MethodImplOptions.InternalCall)]
  148. private static extern void Internal_setrotationRate(IntPtr thisPtr, Vector3Distribution value);
  149. [MethodImpl(MethodImplOptions.InternalCall)]
  150. private static extern bool Internal_gettilingX(IntPtr thisPtr);
  151. [MethodImpl(MethodImplOptions.InternalCall)]
  152. private static extern void Internal_settilingX(IntPtr thisPtr, bool value);
  153. [MethodImpl(MethodImplOptions.InternalCall)]
  154. private static extern bool Internal_gettilingY(IntPtr thisPtr);
  155. [MethodImpl(MethodImplOptions.InternalCall)]
  156. private static extern void Internal_settilingY(IntPtr thisPtr, bool value);
  157. [MethodImpl(MethodImplOptions.InternalCall)]
  158. private static extern bool Internal_gettilingZ(IntPtr thisPtr);
  159. [MethodImpl(MethodImplOptions.InternalCall)]
  160. private static extern void Internal_settilingZ(IntPtr thisPtr, bool value);
  161. }
  162. /** @} */
  163. }