can you do the same kind of raycast with bulletphyics etc, D3DXIntersect in d3d9?
Raycasting
i cant seem to find an example using a bullet phyics ray on a mesh done in d3d9, do you happen to know any?
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
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement