View Full Version : MaxScript Rotation Questions.

21-02-2005, 02:47 AM
1) I am currently using 3DS MAX r6, but have access to r7.

2) I'm using the built in MaxScript scripting engine with MAX r6

3) I want to generate a script that will rotate an object to look at another object. I can generate the Matrix3 XYZ position of both nodes, and find the Quat Rotation of the first node.

I want to rotate that node by a / b degrees, where a is the shortest possible distance between the Node's Current Quat Rotation and Target Quat Rotation and b is maximum degrees a Node can naturally rotate in a single frame.

This result would help with an outer space dog fight, so rotation is necessary.

4) The problem is, I'm not sure how to make Quats work.