ParticleVectorFieldSettings.generated.cs 6.4 KB

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