   Collision detection question
  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.   
  i've done this shit with kd-trees and ray/mesh intersection.thanks for help morons...;  less coffee maybe?   ;Quote:Original post by tiranitzarthanks for help morons...You should put this in your signature for future reference.   