Hi :D,
How can I detect whether two ModelVisual3D's have collided with each other or not?
Thanks
Q
Printable View
Hi :D,
How can I detect whether two ModelVisual3D's have collided with each other or not?
Thanks
Q
to be honest I've not played around much with WPFs 3D capabilities (other than making a 3D cube just to see how its done) but it sounds like you are trying to make a game of some sort - if thats the case then I dont really think WPF is the ideal platform for that, you would be better off using the DirectX platform from what I have read. The 3D parts of WPF are meant more for fancy effects/visuals and not really for building your entire program out of.
Generally in any application that requires collision detection the most popular way is to surround your model in a bounding sphere and check if the sphere has "collided" with another sphere.
To be honest I second what Chris is saying and suggest you look up XNA. XNA was build for this sort of jazz. WPF was build with rich applications in mind. There are a lot of people also using an XNA window in a WPF application for things like showing and transforming objects in 3d space.