PDA

View Full Version : multi point pivot align


Aaron Moore
03-24-2004, 08:20 PM
Hi guys,

I'm trying to write a new tool again and I'm stuck. I need to set the pivot point of an object based on 2 or more verticies.

I'm confused because the documentation says that the pivot point is a point3, yet in max its a vector

What I want to do is center the oivot point based on points selected on that object. That way, if you select 2 points, the pivot will center itself between the two.

If you select 4 then it could also determine the proper up vector to help determine the proper orientation.

The other quick thing i wanted to do is rotate the pivot point 180 degrees since a majority of my issues are coming from pivots facing the wrong way. But I don't understand how to so this if I'm treating the pivot as just a point in space.

Thanks guys, appreciate any help I can get,
Aaron

CGTalk Moderation
01-17-2006, 09:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.