public TransformationManager SetScale(float scale) { ScaleValue = new Vector3(scale, scale, scale); BeenModified = true; LastUpdated = DateTime.Now; FireOnUpdate(); return(this); }
public TransformationManager Scale(Vector3 scale) { ScaleValue *= scale; BeenModified = true; LastUpdated = DateTime.Now; FireOnUpdate(); return(this); }
//---------------/ //---------------/ public TransformationManager Scale(float x, float y, float z) { ScaleValue *= new Vector3(x, y, z); BeenModified = true; LastUpdated = DateTime.Now; FireOnUpdate(); return(this); }
public TransformationManager(Vector3 pos, Quaternion orient, Vector3 scale) { Position = new ValuePointer <Vector3>(pos); Orientation = orient; ScaleValue = scale; BeenModified = true; LastUpdated = DateTime.Now; FireOnUpdate(); }
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 }); }