Collision detection question

Started by
2 comments, last by Tunah 14 years, 11 months ago
Hi everyone! I'm making a water by sph method. Water physics works fine. And now i need to make it collide with rigid body. Rigid body is triangulated surface (each triangle has coordinates of 3 vertices). For collision detection i use following method... I put surface in a box. For each particle laying in this box I choose triangle with minimal distance from center of it to particle. If this distance is appropriate for collision i make collision response for respective particle. This is stupid method..so could any1 give me a clue of more serious way for collision detection.
Advertisement
i've done this shit with kd-trees and ray/mesh intersection.
thanks for help morons...

less coffee maybe?

Everything is better with Metal.

Quote:Original post by tiranitzar
thanks for help morons...


You should put this in your signature for future reference.

This topic is closed to new replies.

Advertisement