Jump to content
  • Advertisement
Sign in to follow this  
giuseppeCT

Position & Orientation from 2 pivots

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

Hello, i need a help to solve a math problem, i got 2 points in space(say pivots), i need to get a matrix to orientate some point around by the line(axis) constructed from these 2 pivots(rotation around that line is not needed), what i'd like to obtain is a simple ik system for falling human bodies, something like the game hitman1/2 read the text below excerpted from an old article by By Thomas Jakobsen in 2003: ********************************************* Actually, in Hitman corpses aren’t composed of rigid bodies modeled by tetrahedrons. They are simpler yet, as they consist of particles connected by stick constraints in effect forming stick figures. **** The position and orientation for each limb (a vector and a matrix) are then derived for rendering purposes from the particle positions using various cross products and vector normalizations **** In other words, seen isolated each limb is not a rigid body with the usual 6 degrees of freedom. This means that physically the rotation around the length axis of a limb is not simulated. Instead, the skeletal animation system used to setup the polygonal mesh of the character is forced to orientate the leg, for instance, such that the knee appears to bend naturally. Since rotation of legs and arms around the length axis does not comprise the essential motion of a falling human body, this works out okay and actually optimizes speed by a great deal. ******************************************* i tried to make something similar but the rotation matrix derived from pivots rotates points about a wrong axis, consider that i got a skeletal deformation system to animate my meshes and i concatenate the inverse of original frame matrix by derived one, just to put back on local space points affected by the derived matrix.......... any idea?????? thanx in advance and as always sorry about my horrible english ;)!!!

Share this post


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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!