Moving an object is not smooth.. why?

Blitz3D Forums/Blitz3D Programming/Moving an object is not smooth.. why?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi there,

I have got a problem with Blitz3D. If you try the following small program:

Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
cube=CreateCube()
While not KeyDown(1)
ms% = MilliSecs()
PositionEntity cube,0,0,5.0+Sin(0.01*Float(ms))
RenderWorld
Flip
Wend
End


You will see a cube waving on Z axis on a sinus move.

But the move is not smooth, it seems to move step by step.

I don't understand why.

Where is the error in my code? What did I do wrong?

It seems Blitz uses integer instead of float somewhere but I cannot understand where is my error..

thanks for any help

alain