Beispiel #1
0
 public TransformationManager SetScale(float scale)
 {
     ScaleValue   = new Vector3(scale, scale, scale);
     BeenModified = true;
     LastUpdated  = DateTime.Now;
     FireOnUpdate();
     return(this);
 }
Beispiel #2
0
 public TransformationManager Scale(Vector3 scale)
 {
     ScaleValue  *= scale;
     BeenModified = true;
     LastUpdated  = DateTime.Now;
     FireOnUpdate();
     return(this);
 }
Beispiel #3
0
 //---------------/
 //---------------/
 public TransformationManager Scale(float x, float y, float z)
 {
     ScaleValue  *= new Vector3(x, y, z);
     BeenModified = true;
     LastUpdated  = DateTime.Now;
     FireOnUpdate();
     return(this);
 }
Beispiel #4
0
 public TransformationManager(Vector3 pos, Quaternion orient, Vector3 scale)
 {
     Position     = new ValuePointer <Vector3>(pos);
     Orientation  = orient;
     ScaleValue   = scale;
     BeenModified = true;
     LastUpdated  = DateTime.Now;
     FireOnUpdate();
 }
Beispiel #5
0
 public static void Interpolate <T>(ValuePointer <T> value, T start, T end, float duration, Easing easing = Easing.Linear)
 {
     Interpolators.Add(new SingleInterpolation <T>()
     {
         Reference  = value,
         ValueStart = start,
         ValueEnd   = end,
         Duration   = duration,
         StartTime  = Stopwatch.GetTimestamp(),
         Easing     = easing
     });
 }