Projectiles clipping through static trimesh (use CCD?)

sir_nacnud

07-12-2008 23:21:04

I have run into a problem with projectiles in my program not properly colliding with a triangle mesh. The projectiles are dynamic bodies, with small cubes for their shapes. The projectiles have no problems colliding with dynamic bodies. If I increase the size of the cube or changes them to a sphere, some of them will collide, but not all of them. The triangle mesh is just a static body with a triangle mesh for it's shape.

I did some searching on this forum and it seems like using Continuous Collision Detection (CCD) may solve the problem. I am using NxOgre 0.9.x and 2.7.2 PhysX SDK, so I know I will have to set up CCD directly through PhysX, but I can't find it documentation on the PhysX site as to what I need to do. I have found some sample programs which use CCD that came with the PhysX SDK, but I don't know how to integrate this with Ogre and NxOgre. Anyone have any advice or experience with setting up CCD through PhysX?