collision

Started by
0 comments, last by click 21 years, 5 months ago
How can I build Boundingsphere tree? I calculated BS radius and center of my object, using D3DXComputeBoundingSphere. But I want to subdivide BS into smaller parts for collision detection to done better. Can anyone show me the way or address on the net. Thanks.
Advertisement
If you''re looking to sub-divide a BS, you''re going to get some gaps because the spheres don''t fill all the space. I guess this would be quite easy though. Just create center points and radii for each subdivision that you want. I''m not sure what you''re trying to do, but if you had, for example, an arm, you could use a BS for the entire arm, then add three extra ones for the shoulder, the elbow and the hand and then test for each of those. I don''t know if you could use the built-in DX BS tests, but you could very easily create your own (centerpoint+radius) - (centerpoint2+radius2) < 0 = hit.
'Doing the impossible is kind of fun' - Walt Disney

This topic is closed to new replies.

Advertisement