コード例 #1
0
        /// <summary>Initializes the struct with default values.</summary>
        public static ParticleCollisionsOptions Default()
        {
            ParticleCollisionsOptions value = new ParticleCollisionsOptions();

            value.mode         = ParticleCollisionMode.Plane;
            value.restitution  = 1f;
            value.dampening    = 0.5f;
            value.lifetimeLoss = 0f;
            value.radius       = 0.00999999977f;
            value.layer        = 18446744073709551615;

            return(value);
        }
コード例 #2
0
 private static extern void Internal_create(ParticleCollisions managedInstance, ref ParticleCollisionsOptions desc);
コード例 #3
0
 private static extern void Internal_setOptions(IntPtr thisPtr, ref ParticleCollisionsOptions options);
コード例 #4
0
 private static extern void Internal_getOptions(IntPtr thisPtr, out ParticleCollisionsOptions __output);
コード例 #5
0
 /// <summary>Creates a new particle collision evolver.</summary>
 public ParticleCollisions(ParticleCollisionsOptions desc)
 {
     Internal_create(this, ref desc);
 }