Collision Detection
#1
Hello,

Just wondering if there is any support in these tools for collision detection between two Meshes/Visuals/etc?

Unfortunately the meshes have rotations, so bounding box checks aren't quite enough.

Thanks in advance for your help!
#2
The Ab3d.PowerToys library and WPF 3D do not provide any special collision detection except checking if two bounding boxes intersect. But as you found out, if this is not very accutate.

But with Ab3d.DXEngine, you can use the Ab3d.DirectX.Utilities.MeshCollider help class that can find accurate intersections between a mesh and a 3D position, Rect3D, BoundingBox or another mesh.

You can see that in action by checking the "Other Ab3d.DXEngine samples / MeshCollider sample" in the Ab3d.DXEngine samples (https://github.com/ab4d/Ab3d.DXEngine.Wpf.Samples).

   

See also online help:
https://www.ab4d.com/help/DXEngine/html/...llider.htm


MeshCollider requires Ray-hit-testing code and thefore it does not work only with Ab3d.PowerToys but requires Ab3d.DXEngine that have have Ray-hit-testing for moue hit testing.
Andrej Benedik
  


Forum Jump:


Users browsing this thread:
1 Guest(s)