An OOP Spaceship Movement routine

BlitzMax Forums/BlitzMax Tutorials/An OOP Spaceship Movement routine

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.

Good tutorial.
This inspire me for the OOP version of Nehe tutorial 32. :)

I added some code in the method update() :
angular_velocity# = angular_velocity# * rotfriction#
velocity# = velocity# * friction
If velocity#<0.0001 Then velocity#=0.0

And change this to the methode show() :
DrawText "Velocity = "+ "".FromFloat(velocity)[..6],x-40,y+48

I hate this long long long float. :)
It's just a preference.