caves icon indicating copy to clipboard operation
caves copied to clipboard

Ability to push things around

Open sunjay opened this issue 7 years ago • 0 comments

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.

sunjay avatar Oct 31 '18 06:10 sunjay