Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualMedo3337

Posted 21 December 2012 - 12:44 PM

Hi,

 

I'm able to get the width, length and height by using D3DXComputeBoundingBox()

 

float width = max.x - min.x;
float length = max.y - min.y;
float height = max.z - min.z;

The problem is that I'm not sure how can I pass the values to btBoxShape, I tried:

 

btBoxShape* box = new btBoxShape(btVector3(width / 2.0f, length / 2.0f, height / 2.0f));

But, I'm not getting a box with the same size.


#1Medo3337

Posted 21 December 2012 - 11:30 AM

Hi,

 

I'm able to get the width, length and height by using D3DXComputeBoundingBox()

 

float width = max.x - min.x;
float length = max.y - min.y;
float height = max.z - min.z;

The problem is that I'm not sure how can I pass the values to btBoxShape, I tried:

 

btBoxShape* box = new btBoxShape(btVector3(width, length, height));

But, I'm not getting a box with the same size.


PARTNERS