OfficerYoda / Fhysics

A Physics simulation
MIT License
0 stars 0 forks source link

Rectangles stay outside Border #31

Closed OfficerYoda closed 3 months ago

OfficerYoda commented 4 months ago

When rectangles get pushed outside the border they dont get pushed back into bounds.

OfficerYoda commented 4 months ago

It's the same with polygons

OfficerYoda commented 4 months ago

maybe check the polygons position and if the position is out of bounds move it back in first

OfficerYoda commented 3 months ago

How to reproduce

Let a Big Rectangle Fall on a small one and the small one will be pushed outside the bounds.

image

OfficerYoda commented 3 months ago

Fixed when BorderObjects were introduced.