示例#1
0
        // INITIALIZE //
        //
        override public void Initialize(AmpsBlueprint theOwnerBlueprint, AmpsHelpers.eStackFunction sf, string mt)
        {
            base.Initialize(theOwnerBlueprint, sf, mt);

            isParticleStack = false;
            isVector3Stack  = false;
        }
示例#2
0
        // INITIALIZE //
        //
        override public void Initialize(AmpsBlueprint theOwnerBlueprint, AmpsHelpers.eStackFunction sf, string mt)
        {
            base.Initialize(theOwnerBlueprint, sf, mt);

            if (ownerBlueprint.ownerEmitter != null)
            {
                values = new Vector4[ownerBlueprint.ownerEmitter.particleIds.Length];
            }
            isParticleStack = true;

            if (sf == AmpsHelpers.eStackFunction.Acceleration ||
                sf == AmpsHelpers.eStackFunction.Velocity ||
                sf == AmpsHelpers.eStackFunction.Position ||
                sf == AmpsHelpers.eStackFunction.RotationRate ||
                sf == AmpsHelpers.eStackFunction.Rotation ||
                sf == AmpsHelpers.eStackFunction.Scale ||
                sf == AmpsHelpers.eStackFunction.PivotOffset)
            {
                isVector3Stack = true;
            }
            else
            {
                isVector3Stack = false;
            }
        }
示例#3
0
//============================================================================//
#if UNITY_EDITOR
        // INITIALIZE //
        //
        virtual public void Initialize(AmpsBlueprint theOwnerBlueprint, AmpsHelpers.eStackFunction theStackFunction, string theModuleType)
        {
            stackFunction  = theStackFunction;
            name           = AmpsHelpers.formatEnumString(theStackFunction.ToString());
            moduleType     = theModuleType;
            ownerBlueprint = theOwnerBlueprint;
        }
示例#4
0
 // SET DEFAULT COORD SYSTEM //
 //
 public void SetDefaultCoordSystem(AmpsHelpers.eStackFunction stackFunction)
 {
     if (stackFunction == AmpsHelpers.eStackFunction.Position ||
         stackFunction == AmpsHelpers.eStackFunction.Rotation ||
         stackFunction == AmpsHelpers.eStackFunction.Scale)
     {
         coordSystem = AmpsHelpers.eCoordSystems.Emitter;
     }
 }
示例#5
0
        // INITIALIZE //
        //
        override public void Initialize(AmpsBlueprint theOwnerBlueprint, AmpsHelpers.eStackFunction sf, string mt)
        {
            base.Initialize(theOwnerBlueprint, sf, mt);

            if (ownerBlueprint.ownerEmitter != null)
            {
                values = new float[ownerBlueprint.ownerEmitter.particleIds.Length];
            }
            isParticleStack = true;
            isVector3Stack  = false;
        }
示例#6
0
 // SET CONVERSION MODE //
 //
 public void SetConversionMode(AmpsHelpers.eStackFunction stackFunction)
 {
     if (stackFunction == AmpsHelpers.eStackFunction.Position)
     {
         coordSystemConversionMode = BaseProperty.eCoordSystemConversionMode.AsPosition;
     }
     else if (stackFunction == AmpsHelpers.eStackFunction.Rotation ||
              stackFunction == AmpsHelpers.eStackFunction.RotationRate)
     {
         coordSystemConversionMode = BaseProperty.eCoordSystemConversionMode.AsRotation;
     }
     else if (stackFunction == AmpsHelpers.eStackFunction.Velocity ||
              stackFunction == AmpsHelpers.eStackFunction.Acceleration)
     {
         coordSystemConversionMode = BaseProperty.eCoordSystemConversionMode.AsVelocity;
     }
     else if (stackFunction == AmpsHelpers.eStackFunction.Scale)
     {
         coordSystemConversionMode = BaseProperty.eCoordSystemConversionMode.AsScale;
     }
 }