Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualMedo3337

Posted 21 December 2012 - 05:54 PM

Oh, I want to mention that was a mistake since I wrote the code here instead of copying it.

Yes, I tried:
btVector3 boxHalfExtents(boxWidth*.5f, boxHeight*.5f, boxDepth*.5f);
btBoxShape* boxShape = new btBoxShape(boxHalfExtents);

I also tried:
btVector3 boxHalfExtents(boxWidth/2.0f, boxHeight/2.0f, boxDepth/2.0f);
btBoxShape* boxShape = new btBoxShape(boxHalfExtents);

Both are not working as expected, the box is larger than the real one.

#9Medo3337

Posted 21 December 2012 - 05:53 PM

Oh, I want to mention that was a mistake since I wrote the code here instead of copying it.

Yes, I tried:
btVector3 boxHalfExtents(boxWidth*2.0f, boxHeight*2.0f, boxDepth*2.0f);btBoxShape* boxShape = new btBoxShape(boxHalfExtents);
I also tried:
btVector3 boxHalfExtents(boxWidth/2.0f, boxHeight/2.0f, boxDepth/2.0f);btBoxShape* boxShape = new btBoxShape(boxHalfExtents);
Both are not working as expected, the box is larger than the real one.

#8Medo3337

Posted 21 December 2012 - 05:53 PM

Oh, I want to mention that was a mistake since I wrote the code here instead of copying it.

Yes, I tried:
btVector3 boxHalfExtents(boxWidth*2.0f, boxHeight*2.0f, boxDepth*2.0f);btBoxShape* boxShape = new btBoxShape(boxHalfExtents);
I also tried:
btVector3 boxHalfExtents(boxWidth/2.0f, boxHeight/2.0f, boxDepth/2.0f);btBoxShape* boxShape = new btBoxShape(boxHalfExtents);
Both are not working as expected, the box is larger than the real one.

#7Medo3337

Posted 21 December 2012 - 05:52 PM

Oh, I want to mention that was a mistake since I wrote the code here instead of copying it.

Yes, I tried:
btVector3 boxHalfExtents(boxWidth*2.0f, boxHeight*2.0f, boxDepth*2.0f);btBoxShape* boxShape = new btBoxShape(boxHalfExtents);
I also tried:
btVector3 boxHalfExtents(boxWidth/2.0f, boxHeight/2.0f, boxDepth/2.0f);btBoxShape* boxShape = new btBoxShape(boxHalfExtents);

Both are not working as expected, the box is larger than the real one.

#6Medo3337

Posted 21 December 2012 - 12:44 PM

Oh, I want to mention that was a mistake since I wrote the code here instead of copying it.

Yes, I tried:

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

I also tried:

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


Both are not working as expected, the box is larger than the real one.


#5Medo3337

Posted 21 December 2012 - 12:43 PM

Oh, I want to mention that was a mistake since I wrote the code here instead of copying it.

Yes, I tried:

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

I also tried:

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

 


Both are not working as expected, the box is larger than the real one.


PARTNERS