04-11-2006 18:57
Hello,

I'm attempting to create an attachment that is able to find a target via llSensor, and then "shoot" a physical object towards that target along the line-of-sight between itself and the target.

I've tried llLookAt, but no go for that on attachments. Looked through the LSL Wiki as well. Is there a simple way to calculate the correct velocity vector and rotation for a line between two known vectors?

:)

[Edit later]

Nevermind, it turns out llVecNorm is the function I was seeking...