flame-engine / flame-engine/flame

Flame needs a more complete minimal physics engine

Open
#3,418 9 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
10.8k
Forks
1k
Avg merge
1d 20h
Merged PRs (30d)
21

Description

### Problem to solve

There is no physics engine that available for Flame that has enough features to make implementing platformer physics easy.

### Proposal

Flame needs a physics engine akin to [bump.lua](https://github.com/kikito/bump.lua). That implements moving objects and performing [slide, cross, bounce, touch] reactions when moving an AABB from one spot to another. This is not available with Flame's built in collision detection and bringing in box2d is overkill and not good for many types of games (like platformers). FWIW I tried to leverage the existing collision detection system to implement `slide` and I came to the conclusion it would just be easier to implement my own physics.

Wishlist:
- slide collisions (like bump.lua's `move` with `"slide"`)
- rectangle casting (like bump.lua's `check`)

### More information

_No response_

### Other

- [ ] Are you interested in working on a PR for this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.