Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualMichael Tanczos

Posted 24 December 2012 - 10:23 PM

I got this problem resolved, but I have another problem that I have been trying to fix since yesterday.

I'm trying to create btBoxShape from the box information (boxWidth, boxHeight, boxDepth), but I see a larger box a result.
 

float boxWidth = (vecMax.x - vecMin.x);
float boxHeight = (vecMax.y - vecMin.y);
float boxDepth = (vecMax.z - vecMin.z);

btVector3 boxHalfExtents(boxWidth, boxHeight, boxDepth);
btBoxShape* boxShape = new btBoxShape(boxHalfExtents);

#1Medo3337

Posted 21 December 2012 - 08:45 AM

I got this problem resolved, but I have another problem that I have been trying to fix since yesterday.

I'm trying to create btBoxShape from the box information (boxWidth, boxHeight, boxDepth), but I see a larger box a result.

float boxWidth = (vecMax.x - vecMin.x);
float boxHeight = (vecMax.y - vecMin.y);
float boxDepth = (vecMax.z - vecMin.z);

btVector3 boxHalfExtents(boxWidth, boxHeight, boxDepth);
btBoxShape* boxShape = new btBoxShape(boxHalfExtents);

PARTNERS