|
|
Andrew Clinton wrote:
>
> Hello,
>
> Is there any macro available that will perform on an object the same
> function as the look_at command does in a camera?
>
> In other words, I have an object at <0,0,0> and oriented in the +z
> direction, and I wish to perform an x-rotation then a y-rotation so that
> the object is now pointing at a given point (as in the look_at point for
> the Camera). I've been using John VanSickle's Reorient macro, but in
> some cases the object receives an undesireable z-rotation so that it
> becomes tilted wrong.
My matrix page at
http://users.erols.com/vansickl/matrix.htm
has some sample code that may be useful.
Regards,
John
Post a reply to this message
|
|