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

Ability to push things around #54

Open
sunjay opened this issue Oct 31, 2018 · 0 comments
Open

Ability to push things around #54

sunjay opened this issue Oct 31, 2018 · 0 comments

Comments

@sunjay
Copy link
Owner

sunjay commented Oct 31, 2018

It would be neat if the player could push stone blocks around and stuff. Would require changing the physics engine to accept a mass with each colliding bounding box. We would then only apply a fraction of the full force required to separate the two intersecting rectangles. This force would be proportional to the ratio of their masses.

This requires doing two passes over the objects since the first pass will push some objects halfway and then the second pass will need to push other objects the rest of the way.

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
@sunjay and others