shortest distance to turn

Blitz3D Forums/Blitz3D Beginners Area/shortest distance to turn

is there a simple way to manually make an object turn to a random direction, taking the shortest route? Basically, I have an angle, and I would like to manually over many frames rotate toward it. I would prefer not to use aligntovector. Any help is appreciated.

Man = createsphere()
Angle = createpivot( Man ) : positionentiy Pivot, 0,0,10
rotateentity Angle, 0 , rand(-180,180 ), 0, 1

repeat

.......

Turnentity Man, 0, deltayaw( man, angle ) * .1, 0


until ......


Stevie