kaplay
kaplay copied to clipboard
bug: line collision is weird as heck
Bug Description
the collision with a slanted line is not working the way you think it should.
- when the shape is a circle or ellipse when width >= height, it stops initially when colliding with the bounding box of the line, but then carries on through falling
- an ellipse with height > width stops at the bounding box of the line (not the actual line)
- a rect just falls straight through
Version
any
Playground Link
https://play.kaplayjs.com/?code=eJx1kTFrwzAQhXf9iiOTDLYTm05OuxRKKWQrnUoGRTpiUSMJSYkxIf%2B9kpI4MW5vOt73JN09%2FTDTsYFma0Ic%2BnfLjtIPtFqtosKEoN8EQhntophDJHmSmEVGT6mN5VpmsAGFPWykQjqCWEfkNa3D8aK%2BHZ%2BgIrKAsoTOV8tOi4GeQLpPz7zkDXh7wJHenxaW9R%2FKGeSeZg%2F6jaV5pnLaqQo3ttKVcZMyzV%2BaKp%2F76j989dzHdadtA6%2Bbr7c57KXwbQNPE3AOIY%2F9ZXWy%2FSf4MXbFW23pgqPyaBdXFbtOGocp4ypYYbmE52JS9097jDf024wQgbvDvpSXEOElJb0mv5vIfXQ%3D&version=master
Extra information
No response
Summary
- [ ] Fixed in v4000
- [ ] Fixed in v3001
For reference, changing the shape to a zero-thickness polygon polygon([p1, p1, p2, p2]) is totally fine with EVERYTHING I tested