Evolution_War.MovingObject.Draw C# (CSharp) Method

Draw() public method

public Draw ( Double pPercent ) : void
pPercent Double
return void
        public virtual void Draw(Double pPercent)
        {
            Node.Position = new Vector3(Methods.CubicStep(ox, odx, x, dx, pPercent), Methods.CubicStep(oy, ody, y, dy, pPercent), 0);
            Node.Orientation =
                Quaternion.FromAngleAxis(Methods.CubicStep(oa, oda, a, da, pPercent) * Constants.DegreesToRadians, Vector3.UnitZ) *
                Quaternion.FromEulerAnglesInDegrees(-16 * Methods.LinearStep(oda, da, pPercent), 0.0, 0.0);
        }