Пример #1
0
 public static PositionSampler CreateEmpty(float3 defaultPosition)
 {
     return(new PositionSampler()
     {
         x = FloatSampler.CreateEmpty(defaultPosition.x),
         y = FloatSampler.CreateEmpty(defaultPosition.y),
         z = FloatSampler.CreateEmpty(defaultPosition.z)
     });
 }
 public static RotationSampler CreateEmpty(quaternion defaultRotation)
 {
     return(new RotationSampler()
     {
         x = FloatSampler.CreateEmpty(defaultRotation.value.x),
         y = FloatSampler.CreateEmpty(defaultRotation.value.y),
         z = FloatSampler.CreateEmpty(defaultRotation.value.z),
         w = FloatSampler.CreateEmpty(defaultRotation.value.w)
     });
 }
        public FloatSampler GetCurveProxy(int curveIndex)
        {
            switch (curveIndex)
            {
            case 0: return(positions.x);

            case 1: return(positions.y);

            case 2: return(positions.z);

            case 3: return(rotations.x);

            case 4: return(rotations.y);

            case 5: return(rotations.z);

            case 6: return(rotations.w);
            }

            return(FloatSampler.CreateEmpty(0.0f));
        }