rukai / PF_Sandbox

A platform fighter sandbox featuring a character editor tightly integrated with gameplay.
GNU General Public License v3.0
41 stars 3 forks source link

Improve surface edge mouse click box #50

Open rukai opened 7 years ago

rukai commented 7 years ago

Currently the collision detection for clicking on a surface edge uses a circle at the edge. This should be replaced with a rectangle that extends the width of the surface but not the length. This will make clicking feel easy, allow clicking on the whole area of the surface edge and also stop clicking both connected edges. A simple AABB is not sufficient because surfaces can be at any angle.