Commit 0917adcd authored by simon's avatar simon
Browse files

posfromvel timing bug fix

parent 17bc8ff0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -290,10 +290,10 @@ func PositionFromVelocity(c chan Event) chan Event{
			if ce,ok:=e.(CoordsEvent);ok{
				lt=time.Now()
				m=e.Moment()
				vx,vy=ce.X,ce.Y
				dt:=float32((m-lm).Seconds())
				x+=vx*dt
				y+=vy*dt
				vx,vy=ce.X,ce.Y
				lm=	m
			}
		}