Hi, here:
Repeat : elapsed = MilliSecs() - time : Until elapsed
ticks = elapsed / period
tween# = Float(elapsed Mod period) / Float(period)
For k=1 To ticks
time = time + period
If k = ticks Then CaptureWorld
btSimulation(0.2,3)
UpdateLlantas%( MC.TMontacarga )
UpdateVolante%( MC.TMontacarga )
UpdateFreno% ( MC.TMontacarga )
UpdateMotor% ( MC.TMontacarga )
UpdateElevador%(MC.TMontacarga )
If (KeyDown(KEY_E%) ) Then
btBodyApplyForce ( MC\pxChassis%, 0, 500, 0 )
End If
UpdateWorld
;MouseLook( oCamara\camara% )
Next
I mean interpolation , where apparently on slow machines even lower FPS animations move without losing fluidity.
|