Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b2Shape_SetFriction() doesn't update friction of existing contacts #872

Closed
notnullnotvoid opened this issue Jan 20, 2025 · 1 comment
Closed

Comments

@notnullnotvoid
Copy link

I believe the same is also true of b2Shape_SetRestitution(), and maybe the various functions that update body mass data, but I'm not totally sure. It seems the computed values for these properties in b2ContactSim don't get updated as long as the two shapes remain in contact. Admittedly, this is probably a fairly niche use case, but it is one I ran into. I'm currently working around this by disabling and re-enabling the body to force contacts to get re-created, which works well enough for my use case where I'm changing these properties infrequently, but it would be ideal to have a more lightweight way to ensure the contacts' properties get updated.

erincatto added a commit that referenced this issue Jan 22, 2025
- shape material
- friction and restitution callbacks from narrow phase
- platform atomic wrappers
- removed experimental:c11atomics flag

#812 #872
@erincatto
Copy link
Owner

These are now updated in the narrow phase. #873

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants