Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualMedo3337

Posted 22 December 2012 - 10:54 AM

I think the problem has nothing to do with 3Ds Max, since I tried to create a box by writing its dimensions according to 3Ds Max instead of loading .x file.

How can I convert 3Ds Max box dimensions to Bullet box dimensions?

I tried:
float 3dsMaxBoxWidth = 800.0f;
float 3dsMaxBoxHeight = 800.0f;
float 3dsMaxBoxDepth = 800.0f;

btVector3 boxHalfExtents(3dsMaxBoxWidth/2.0, 3dsMaxBoxHeight/2.0, 3dsMaxBoxDepth/2.0); // Not working

I guess that's not the correct way to convert 3Ds max box dimensions to Bullet box dimensions, perhaps I should convert 3Ds Max measuring unit to Bullet measuring unit?

#1Medo3337

Posted 22 December 2012 - 10:54 AM

I think the problem has nothing to do with 3Ds Max, since I tried to create a box by writing its dimensions according to 3Ds Max instead of loading .x file.<br /><br />How can I convert 3Ds Max box dimensions to Bullet box dimensions?<br /><br />I tried:<br />float 3dsMaxBoxWidth = 800.0f;<br />float 3dsMaxBoxHeight = 800.0f;<br />float 3dsMaxBoxDepth = 800.0f;<br /><br />btVector3 boxHalfExtents(3dsMaxBoxWidth/2.0, 3dsMaxBoxHeight/2.0, 3dsMaxBoxDepth/2.0); // Not working<br /><br />I guess that's not the correct way to convert 3Ds max box dimensions to Bullet box dimensions, perhaps I should convert 3Ds Max measuring unit to Bullet measuring unit?

PARTNERS