PARTICLE_ORBIT_DESC.generated.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Particles
  7. * @{
  8. */
  9. /// <summary>Structure used for initializing a ParticleOrbit object.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ParticleOrbitOptions
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static ParticleOrbitOptions Default()
  15. {
  16. ParticleOrbitOptions value = new ParticleOrbitOptions();
  17. value.center = null;
  18. value.velocity = null;
  19. value.radial = new FloatDistribution(0f);
  20. value.worldSpace = false;
  21. return value;
  22. }
  23. /// <summary>Position of the center around which to orbit. Evaluated over particle system lifetime.</summary>
  24. public Vector3Distribution center;
  25. /// <summary>
  26. /// Determines the speed of rotation around each axis. The speed is specified in "turns" where 0 = no rotation, 0.5 =
  27. /// 180 degree rotation and 1 = 360 degree rotation. Evaluated over particle lifetime.
  28. /// </summary>
  29. public Vector3Distribution velocity;
  30. /// <summary>
  31. /// Speed at which to push or pull the particles towards/away from the center. Evaluated over particle lifetime.
  32. /// </summary>
  33. public FloatDistribution radial;
  34. /// <summary>True if the properties provided are in world space, false if in local space.</summary>
  35. public bool worldSpace;
  36. }
  37. /** @} */
  38. }