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.

It's because you are using Sin( EnormousAngle ). The bigger the angle the less accurate Sin( angle ).

In your case a change to Sin( ms Mod 360 ) is probably good enough.

In general you might want to record StartTime = Millisecs() near the start of you program. Then use ms = Millisecs() - StartTime. This will keep the values relatively small.