Hi 3run,
I have set friction for the RIGID body (/crates) and move the CHAR through pXent_move against them, that should work right? But it doesn't the player CHAR just keep walking at full speed through a hundred of crates and pushes them away like its nothing.
Maybe I am missing some flag?
ps: this what I have set for the player CHAR:
wait(1);
c_setminmax(my);
pXent_setskinwidth(my, phy_skinwidth); //permitted penetration of objects
pXent_settype(my, PH_CHAR, PH_CAPSULE); //PH_BOX
No, you have to know that CHAR ignores all RIGID bodies (that's the way native physX plugin works in Acknex). You can't change that by friction or by anything else. You can do some nasty workarounds, f.e. use traces to disable input, when trace hit RIGID bodies (take a look at my latest movement code that uses CHAR with BOX shape). BTW as far as I know, when you set friction via 'set_friction', it will affect only when you move that object against other bodies, not visa versa (as in your example), but I might be wrong
Best regards