Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualSteve_Segreto

Posted 24 March 2013 - 12:51 PM

By other meshes I assume you mean horses and vehicles, which are longer/wider than they are tall?

 

Basically you have to work at the four corners of the oriented bounding box and find the up vector based on that. Reimer Grootjans covers the algorithm in one of his XNA programming recipes.

 

http://shiba.hpe.sh.cn/jiaoyanzu/WULI/soft/XnaRecipes/XNARecipes.pdf

 

Section 4-17.

Correctly Tilt a Model Corresponding to the

Terrain Underneath


#1Steve_Segreto

Posted 24 March 2013 - 12:46 PM

By other meshes I assume you mean horses and vehicles, which are longer/wider than they are tall?

 

Basically you have to work at the four corners of the oriented bounding box and find the up vector based on that. Reimer Grootjans covers the algorithm in one of his XNA programming recipes.


PARTNERS