more fun with vectors...whooohooo

Blitz3D Forums/Blitz3D Programming/more fun with vectors...whooohooo

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.

Basically, subtract the angle of vectorA from the angle of vectorB.

This will give the angle vectorA needs to be rotated by in order to match vectorB.

There are actually 2 delta angles between vectors, though, so if you want the smallest one, you'll need to check if the delta is > 180 degrees.