I have a rigidbody that is a box. I move him with WSAD. Initially he starts in the air and falls to the ground and he doesnt bounce back up. When I run into a staircase, the box doesnt stay on the staircase like it should, instead it bounces into the air.
Do I need to use a callback? because the materials seem to work only when the player isnt moving.
- Code: Select all
//Materials
int Player_mat = NewtonMaterialCreateGroupID(nWorld);
NewtonMaterialSetDefaultSoftness (nWorld, Player_mat, Player_mat, 0);
NewtonMaterialSetDefaultElasticity (nWorld, Player_mat, Player_mat, 0);
NewtonMaterialSetDefaultFriction (nWorld, Player_mat, Player_mat, 1, 1);