Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualRavnock

Posted 21 December 2012 - 04:18 AM

Maybe you have to compute the vertex info, getting it from ID3DXBaseMesh::GetVertexBuffer and calculate the with, length and height to pass them to the btBoxShape constructor.


#1Ravnock

Posted 21 December 2012 - 04:18 AM

Maybe you have to compute the vertex info, getting it from ID3DXBaseMesh::GetVertexBuffer and calculate the with, length and height to pass them to the btBoxShape constructor.

I have LPD3DXMESH box that I load from .x file, I'm trying to setup physics for it.


LPD3DXMESH box;
btBoxShape *box = new btBoxShape(btVector3(???));

How can I get btBoxShape Vector3 in order to create a box with the same length, width, height in bullet physics?

Basically, I am trying to convert LPD3DXMESH to btBoxShape.

 

 


PARTNERS