|
![](/i/fill.gif) |
I believe I've found a solution, but if anyone has a better method, let me
know or post a message.
Requires 'include "transforms.inc"'.
#macro Point_At_Trans_MyO(MOrigV,Target)
translate -MOrigV
#local Z = vnormalize(Target-MOrigV);
#local X = VPerp_To_Vector(Z);
#local Y = vcross(X, Z);
Shear_Trans(X, Y, Z)
translate MOrigV
#end
Where positive Z is the front of the object (the part you want to face the
target), "MOrigV" is the vector of the object, and "Target" is the vector
you want to point at.
Post a reply to this message
|
![](/i/fill.gif) |