Jump to content
  • Advertisement
Sign in to follow this  
Anddos

Using BulletPsyhics with DirectX

This topic is 2437 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok i have been playing around with the bullets samples but there in opengl, what i want todo is use D3DXCreateBox, LPD3DXMESH etc but unsure how to load them in to bullet, does anyone know how todo it thanks...

Share this post


Link to post
Share on other sites
Advertisement
You don't really load them into Bullet. You just create a body within Bullet whose dimensions match the dimensions of your box, then after each tick you retrieve the transform of the object from Bullet and use that as the world transform when rendering your box. IIRC, you need to convert the matrix that Bullet returns from OpenGL format to a DX format in terms of row-column ordering but that is pretty much it.

Aside from the built-in debug rendering, Bullet has no interest or involvement with the actual process of rendering.

Share this post


Link to post
Share on other sites
He means to create a [font=courier new,courier,monospace]btRigidBody [/font]of some sort. I'm afraid you'll need to read the manual.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!