Jump to content
  • Advertisement
Sign in to follow this  

Raycasting

This topic is 1325 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

Advertisement

What is the problem? You have many examples within their sdk.

 

Main part is :

    btCollisionWorld::ClosestRayResultCallback result(from, to);
    physicsWorld->rayTest( from, to, result );
 
... //  use result here

Share this post


Link to post
Share on other sites


a bullet phy[s]ics ray on a mesh done in d3d9

 

I don't know of any examples, and it's probably unlikely there would be one. Most collision/physics engines use objects (such as triangle meshes) that are compatible with the parent API. To use Bullet raycasting with an ID3DXMesh would require creating a separate Bullet object from the ID3DXMesh triangles, or more simply, creating an ID3DXMesh and a Bullet object from a common set of vertices.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!