Esempio n. 1
0
 void SpawnTestParticles(Vector3 pos)
 {
     mTestEmitters.Add(
         mPB.CreateEmitter("Particles\\HeartPart",
                           new Vector4(0f, 1f, 0f, 0.25f),
                           Emitter.Shapes.Sphere, 8f, 100,
                           mGD.GCam.Position, Vector3.Up * 100f,
                           22f, 2.6f, 0.04f, -3f / 1000f, 3f / 1000f,
                           1.5f / 1000f, 4f / 1000f, 30f, 0.15f / 1000f, 0.25f / 1000f,
                           new Vector4(5f, -2f, 0f, 1f) / 10000f,
                           new Vector4(7f, -3f, 0f, 1f) / 10000f,
                           3000, 4000));
 }
Esempio n. 2
0
        void OnCreate(object sender, EventArgs ea)
        {
            float str = mPF.GravStrength;

            Vector4 colorMin = new Vector4(mPF.ColorVelocityMin.X,
                                           mPF.ColorVelocityMin.Y, mPF.ColorVelocityMin.Z, mPF.AlphaMin);

            Vector4 colorMax = new Vector4(mPF.ColorVelocityMax.X,
                                           mPF.ColorVelocityMax.Y, mPF.ColorVelocityMax.Z, mPF.AlphaMax);

            mPB.CreateEmitter(mPF.EmTexture, mPF.EMStartColor,
                              mPF.EmShape, mPF.EmShapeSize,
                              mPF.MaxParts, Vector3.Zero,
                              mPF.GravPos, mPF.GravStrength,
                              mPF.StartingSize, mPF.EmitMS,
                              mPF.SpinMin, mPF.SpinMax,
                              mPF.VelMin, mPF.VelMax, mPF.VelCap,
                              mPF.SizeMin, mPF.SizeMax,
                              colorMin, colorMax,
                              mPF.LifeMin, mPF.LifeMax);

            UpdateListView();
        }