Trimesh - heightfield collision broken
Brought to you by:
tzaeschke
See DemoHeightfield. Dropping a trimesh bunny will cause it to roll off the heightfield, then sink into the floor and finally resurface.
The problem lies in the heightfield-trimesh collider which temporarily substitutes the position, rotation and AABB of colliding bodies before colliding them with the heightfield planes. The problem with GIMPACT trimeshes is that the collider restores after the collision only the position, rotation and AABB stored in DxGeom. The AABB stored inside the trimes is not updated, causing subsequent collisions with other bodies to fail.
A solution is currently discussed in the ODE discussion thread.