I noticed a bug!

May 16, 2011 at 1:42 PM

I built a road 3D model with 3ds max using 4 textures: grass, soil, asphalt and concrete.

If I load the model in XNA with all textures correctly applied, the collision doesn't work.

If I apply only the asphalt texture to entire the model, then the collision works.

 

I don't think the problem is that the collision works only with a certain texture, I think probably it's that the collision doesn't work if the model has got more than 1 (or 2) textures.

May 16, 2011 at 1:47 PM

In fact, I just checked RigidBodyModelProcessor.cs... only the fact that there is a mesh.MeshPart[0] makes me think that the collision model is built only from faces that have applied the first texture!