korlibs / korlibs/korlibs-math-core

AABB collision resolution

Open
#6 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Helpers for resolving AABB collisions would be really helpful for implementing simple platformer physics. The hit detection that exists in KorGE at the moment is too limited and doesn't include resolution, and Box2D is often overkill for these sorts of games. At the moment, it seems like one would need to roll their own solution for this kind of thing.

For a reference implementation, I'd look at [bump.lua](https://github.com/kikito/bump.lua), made for LÖVE, which handles tunneling, and has multiple different resolution methods.

Would also love to see support for slopes. I think that's a common enough use case that shouldn't warrant stepping into Box2D territory

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository files or tests are named. Start by locating KorGE's existing hit-detection implementation and compare its scope with the bump.lua reference; done would require a defined set of AABB resolution helpers, including the requested tunneling, resolution-method, and slope support.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.