PARTICLE_ROTATION_DESC.generated.cs 1.3 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 ParticleRotation object.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ParticleRotationOptions
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static ParticleRotationOptions Default()
  15. {
  16. ParticleRotationOptions value = new ParticleRotationOptions();
  17. value.rotation = new FloatDistribution(0f);
  18. value.rotation3D = null;
  19. value.use3DRotation = false;
  20. return value;
  21. }
  22. /// <summary>
  23. /// Determines the rotation of the particles in degrees, applied around the particle's local Z axis. Only used if 3D
  24. /// rotation is disabled.
  25. /// </summary>
  26. public FloatDistribution rotation;
  27. /// <summary>
  28. /// Determines the rotation of the particles in degrees as Euler angles. Only used if 3D rotation is enabled.
  29. /// </summary>
  30. public Vector3Distribution rotation3D;
  31. /// <summary>
  32. /// Determines should the particle rotation be a single angle applied around a Z axis (if disabled), or a set of Euler
  33. /// angles that allow you to rotate around every axis (if enabled).
  34. /// </summary>
  35. public bool use3DRotation;
  36. }
  37. /** @} */
  38. }