My character is getting stuck to the side of platforms when jumping. To avoid this, I thought setting the friction of my character & my platforms to 0.0 when he is in the air would solve this issue.
When I attempt to set the friction of my character's fixture however, nothing happens. I saw something about calling b2world.Refilter() in a few old forum posts but that method doesn't exist anymore.
How should I dynamically set friction?
Code:
if (isOnPlatform) {
joeFixture->SetFriction(1.0);
} else {
joeFixture->SetFriction(0);
}
joeFixture->SetFriction(1.0);
} else {
joeFixture->SetFriction(0);
}
When I attempt to set the friction of my character's fixture however, nothing happens. I saw something about calling b2world.Refilter() in a few old forum posts but that method doesn't exist anymore.
How should I dynamically set friction?