• Advertisement
Sign in to follow this  

hierarchical transforms and pivot points

This topic is 4262 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have a question about pivot points and transformations. If I want to rotate about a pivot point, I've read that you can translate to the point, do the rotation there and translate back. So a transformation matrix for this might look like: T = Rp * R * inverse(Rp) Where R = Rotation matrix, Rp = translation matrix for translation to the pivot point, and assume post point multiplication. (ie p` = T * p ) My question is would you specify the coordinates of the pivot in world space or local space? If its local space, would it be before or after taking into account the acutal rotation by R? I am pretty confused.

Share this post


Link to post
Share on other sites
Advertisement
The pivot point should be in the local space and should not have the rotation applied to it.

Share this post


Link to post
Share on other sites
Quote:
Original post by JohnBolton
The pivot point should be in the local space and should not have the rotation applied to it.


Thanks John, I worked out a few simple examples and came to the same conclusion. It seems that pivot points for scales should also be specified in local space too.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement