PDA

View Full Version : rotate to object


jargon
08-08-2005, 12:14 PM
I vaguely remember there's a method to rotate one object to another object but I didn't want to look through all my old files trying to see how it's done (I know one can do it in Vizard though). Specifically I have a triangle object and I have another identical triangle object but rotated to some other. How does one rotate the one object to the other? Furthermore, Can you do it without converting it to quaternions (like is there a rotate object to object command?)
thanks,
jargon

farshizzo
08-08-2005, 12:20 PM
Hi,

I think you are referring to the <node3d>.lookat command. It will rotate an object so that it is pointing to the given 3d location. Let me know if this isn't what you were looking for.