Potential Bug with Terrain Friction?
Posted: Thu Jun 07, 2012 8:54 am
Hi,
I was trying to modify the terrain (or my custom collidable that is based directly off of the terrain collidable), to use kinetic and static friction values that are something different than the default 0.6 and 0.8. I realized that no matter what i changed the values to, it didn't seem to affect what I saw in the game. So I dug a bit deeper into the BEPU code, and while I didn't spot the bug, I did see something that might help tracking down if there really is a bug or not in the terrain friction and material usage.
Simply put, in ContactFrictionConstraint.cs in the setup function, when I look at the MaterialInteraction values for contactManifordConstraint, they seem to keep coming thru as their default values (0.6 and 0.
. If i hard code the values I want in that function, then I get the expected visual results in the app. I've also checked to make sure that calls to UpdateMaterialProperties() comes back with the expected values, so the issue seems to be somewhere when it's going from the blended material values to the point they're fed into the contactManifordConstraint, and I didn't dig any deeper at the moment particularly the intertwined calls between contact manifolds, and pair handlers seem to get get a bit hairy to track without knowing the exact architecture and naming convention in BEPU.
It'd be awesome if I could get a hand at trying to nail this issue down.
Thanks a bunch
I was trying to modify the terrain (or my custom collidable that is based directly off of the terrain collidable), to use kinetic and static friction values that are something different than the default 0.6 and 0.8. I realized that no matter what i changed the values to, it didn't seem to affect what I saw in the game. So I dug a bit deeper into the BEPU code, and while I didn't spot the bug, I did see something that might help tracking down if there really is a bug or not in the terrain friction and material usage.
Simply put, in ContactFrictionConstraint.cs in the setup function, when I look at the MaterialInteraction values for contactManifordConstraint, they seem to keep coming thru as their default values (0.6 and 0.

It'd be awesome if I could get a hand at trying to nail this issue down.
Thanks a bunch
