Vector math problem

BlitzMax Forums/BlitzMax Programming/Vector math problem

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.

Thanks for all replies! and Special Thanks to QuiteBloke which really nailed it for me and my game =)

So I solved the problem and..

This is what I did:
This was perset set before the game "starts"
Global k#=Friction/MaxSpeed


This in the main-loop
Friction=Speed.Length()*k



I didn't need to change anything else to make it work, except to comment out If Speed.Length() < MaxSpeed.

I'm really impressed that a simple solution like that was what I was looking for lol.

Now I'm up for the task to actually make the tank act like a tank and not a spaceship =)