| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- namespace BansheeEngine
- {
- /** @addtogroup Particles
- * @{
- */
- /// <summary>Information describing a ParticleEmitterCircleShape.</summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public partial struct ParticleCircleShapeOptions
- {
- /// <summary>Initializes the struct with default values.</summary>
- public static ParticleCircleShapeOptions Default()
- {
- ParticleCircleShapeOptions value = new ParticleCircleShapeOptions();
- value.radius = 1f;
- value.thickness = 0f;
- value.arc = new Degree();
- value.mode = new ParticleEmissionMode();
- return value;
- }
- /// <summary>Radius of the circle.</summary>
- public float radius;
- /// <summary>
- /// Proportion of the surface that can emit particles. Thickness of 0 results in particles being emitted only from the
- /// edge of the circle, while thickness of 1 results in particles being emitted from the entire surface. In-between
- /// values will use a part of the surface.
- /// </summary>
- public float thickness;
- /// <summary>Angular portion of the cone from which to emit particles from, in degrees.</summary>
- public Degree arc;
- /// <summary>Determines how will particle positions on the shape be generated.</summary>
- public ParticleEmissionMode mode;
- }
- /** @} */
- }
|