// Use this for initialization
 protected override void Init()
 {
     counter  = 0;
     count    = 5;
     tooltips = IMLTooltipsSerialization.LoadTooltip("Float");
     base.Init();
 }
 // Use this for initialization
 protected override void Init()
 {
     base.Init();
     tooltips = IMLTooltipsSerialization.LoadTooltip("Distance");
     // This extractor expects any other feature extracted to make calculations
     FirstInput  = GetInputValue <Node>("FirstInput");
     SecondInput = GetInputValues <Node>("SecondInput").ToList();
 }
 // Use this for initialization
 protected override void Init()
 {
     base.Init();
     tooltips = IMLTooltipsSerialization.LoadTooltip("Rotation");
     if (m_RotationExtracted == null)
     {
         m_RotationExtracted = new IMLVector3();
     }
 }
        // Use this for initialization
        protected override void Init()
        {
            counter = 0;
            count   = 5;

            base.Init();
            tooltips = IMLTooltipsSerialization.LoadTooltip("Position");
            if (m_PositionExtracted == null)
            {
                m_PositionExtracted = new IMLVector3();
            }
        }
Example #5
0
 // Use this for initialization
 protected override void Init()
 {
     base.Init();
     tooltips = IMLTooltipsSerialization.LoadTooltip("Velocity");
     // The velocity extractor expects any other feature extracted to make calculations
     FeatureToInput = GetInputValue <Node>("FeatureToInput");
     // If we managed to get the input
     if (FeatureToInput != null)
     {
         // We check that it is an IML Feature
         var featureToUse = (FeatureToInput as IFeatureIML).FeatureValues;
         if (featureToUse != null)
         {
             // Calculate the velocity arrays size
             m_CurrentVelocity       = new float[featureToUse.Values.Length];
             m_LastFrameFeatureValue = new float[m_CurrentVelocity.Length];
         }
     }
 }