Shrinking vector

Blitz3D Forums/Blitz3D Programming/Shrinking vector

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.

You're modifying Vector_X then applying that change to Vector_Y. Try this (ensures you're working with values which are constant throughout the 'science bit' ;) :
vx# = vector_x
vy# = vector_y
vector_x = (vx * Cos(ang)) - (vy * Sin(ang))
vector_y = (vy * Cos(ang)) + (vx * Sin(ang))