Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

Please verify my object attachment method

This topic is 693 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

If I want to attach a hand to a trolley's handle,
I would do something like this,
handPos * inv(handWorldMatrix) * handleWorldMatrix

Generally, handWorldMatrix will take the hand from local space to world space,
so taking the inverses of it will take it back to local space where hand pos is in world space.

So the next step is to transform it to handle world space.
When it completes the last multiplication, the hand is in the same space as the trolley?
Am I correct?
Thanks
Jack

Share this post


Link to post
Share on other sites
Advertisement

I am wondering if I add a new pivot to a "box",
Should I update the box transformation whenever I update
the character's transformation, just like
the box is a child of the character....

If the newly created pivot is at the corner of the box,
and the original pivot is at the lower bottom of it.
Should I offset all vertexes of the box, or should I offset
just the old pivot relative to the new pivot, which becomes
a double transformation?
Thanks
Jack

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!