| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- namespace BansheeEngine
- {
- /** @addtogroup Particles
- * @{
- */
- /// <summary>Information describing a ParticleEmitterConeShape.</summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public partial struct ParticleConeShapeOptions
- {
- /// <summary>Initializes the struct with default values.</summary>
- public static ParticleConeShapeOptions Default()
- {
- ParticleConeShapeOptions value = new ParticleConeShapeOptions();
- value.type = ParticleEmitterConeType.Base;
- value.radius = 0f;
- value.angle = new Degree();
- value.length = 1f;
- value.thickness = 1f;
- value.arc = new Degree();
- value.mode = new ParticleEmissionMode();
- return value;
- }
- /// <summary>Determines where on the cone are the particles emitter from.</summary>
- public ParticleEmitterConeType type;
- /// <summary>Radius of the cone base.</summary>
- public float radius;
- /// <summary>Angle of the cone.</summary>
- public Degree angle;
- /// <summary>Length of the cone. Irrelevant if emission type is Base.</summary>
- public float length;
- /// <summary>
- /// Proportion of the volume that can emit particles. Thickness of 0 results in particles being emitted only from the
- /// edge of the cone, while thickness of 1 results in particles being emitted from the entire volume. In-between values
- /// will use a part of the volume.
- /// </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;
- }
- /** @} */
- }
|