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

Features and fixes from base box2d #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

kmgb
Copy link

@kmgb kmgb commented Aug 5, 2021

This PR includes 3 changes that the base box2d project has adopted:

  1. Wake B2Body on setLinearVelocity or setAngularVelocity:
    Currently, if one of these functions is called on a sleeping body, the body remains stationary. The solution is to wake bodies when either of these functions are called with non-zero values.

  2. Change restitution threshold to be per-fixture:
    This replaces the global setting b2_velocityThreshold with a per-fixture setting that allows for customization of the cutoff velocity for elastic collisions.

  3. Fix B2Body setActive(true) first frame:
    This ports a simple bugfix for setActive(true) on a B2Body not considering collision for that body on the first frame

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

Successfully merging this pull request may close these issues.

1 participant