| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- namespace BansheeEngine
- {
- /** @addtogroup Particles
- * @{
- */
- /// <summary>Structure used for initializing a ParticleOrbit object.</summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public partial struct ParticleOrbitOptions
- {
- /// <summary>Initializes the struct with default values.</summary>
- public static ParticleOrbitOptions Default()
- {
- ParticleOrbitOptions value = new ParticleOrbitOptions();
- value.center = null;
- value.velocity = null;
- value.radial = new FloatDistribution(0f);
- value.worldSpace = false;
- return value;
- }
- /// <summary>Position of the center around which to orbit. Evaluated over particle system lifetime.</summary>
- public Vector3Distribution center;
- /// <summary>
- /// Determines the speed of rotation around each axis. The speed is specified in "turns" where 0 = no rotation, 0.5 =
- /// 180 degree rotation and 1 = 360 degree rotation. Evaluated over particle lifetime.
- /// </summary>
- public Vector3Distribution velocity;
- /// <summary>
- /// Speed at which to push or pull the particles towards/away from the center. Evaluated over particle lifetime.
- /// </summary>
- public FloatDistribution radial;
- /// <summary>True if the properties provided are in world space, false if in local space.</summary>
- public bool worldSpace;
- }
- /** @} */
- }
|