コード例 #1
0
 public void AddFrame(short tc, float x, float y, float z, bool linear)
 {
     for (int i = 0; i < AxisCount; i++)
     {
         AnimationAxisTransformBlock b = AxisSet[i];
         b.Add(tc, GetAxisValue(i, b.FromCompressedFloat(x), b.FromCompressedFloat(y), b.FromCompressedFloat(z)), 0, 0, linear);
     }
 }
コード例 #2
0
        public AnimationAxisTransformBlock CloneBase()
        {
            AnimationAxisTransformBlock ab = new AnimationAxisTransformBlock(null);

            ab.datai = (uint[])this.datai.Clone();
            foreach (AnimationAxisTransform aat in items)
            {
                ab.Add(aat.CloneBase());
            }

            ab.type = this.type;

            return(ab);
        }
コード例 #3
0
        public AnimationFrame AddFrame(short tc, short x, short y, short z, bool linear)
        {
            AnimationFrame af = new AnimationFrame(tc, TransformationType);

            //af.Blocks = new AnimationAxisTransform[AxisCount];
            for (int i = 0; i < AxisCount; i++)
            {
                AnimationAxisTransformBlock b   = AxisSet[i];
                AnimationAxisTransform      aat = b.Add(tc, GetAxisValue(i, x, y, z), 0, 0, linear);

                if (i < 4)
                {
                    af.Blocks[i] = aat;
                }
            }

            return(af);
        }