@name Robotboy655's Expression One: Vehicle Stats
@inputs X Y Z Reset
@outputs Speed Acceleration TotalDistance
@persist SpeedPrev

# Wire a Speedometer to the inputs
SMOOTH = 10
Speed = sqrt(X^2 + Y^2 + Z^2)
Acceleration = Acceleration * (1 - 1 / SMOOTH) + (Speed - SpeedPrev) * (1 / SMOOTH)
TotalDistance += Speed
SpeedPrev = Speed
if(Reset){TotalDistance = 0}
