tween# ?

Blitz3D Forums/Blitz3D Programming/tween# ?

Yue(Posted 2016) [#1]
Hello , I wonder if I am correctly implementing the Tween in this code. I appreciate the possible suggestions . to improve , as the clarification that is what a tween .

Thank you.




steve_ancell(Posted 2016) [#2]
what a tween

If you're talking about animation then I would assume a tween is a method for generating frames between two poses.


Yue(Posted 2016) [#3]
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.