Yeah sure, although I might alter the magnitude variable so that we always
calculate in microseconds. That way we never have to use a clock cycle to
change units.
On 3 Nov 2013 13:15, "smokyturbo" <notifications@github.com> wrote:

> In src/main/logic/MobileEntity.cpp:
>
> > @@ -73,8 +73,8 @@ void MobileEntity::setDirection(Direction _dir) {
> >  			break;
> >  	}
> >
> > -	vector.x = x_mag * dt;
> > -	vector.y = y_mag * dt;
> > +	vector.x = x_mag * (dt/1000000);
> > +	vector.y = y_mag * (dt/1000000);
>
> Can we extract dt/1000000 to a variable so we only calculate it once?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/grizzly-studios/Space-Evaders/pull/19/files#r7390604>
> .
>