Align to vector

Blitz3D Forums/Blitz3D Programming/Align to 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.

I'm making a game that has robota battling each other. They have seperate body parts. The robots are entirely AI controlled. the guns are on the torso for the robot and I need a way to make the torso smoolhly turn to face a target.

I've seen Align to Vector used in this fashion, but I don't remember exactly how it works. Anyone have any example for this?