Flame needs a more complete minimal physics engine

Open
#3,418 9 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

The issue names no files or tests; start by reviewing Flame’s built-in collision detection system and the proposed bump.lua behavior. Determine the design and API needed for moving AABBs, slide/cross/bounce/touch reactions, and rectangle casting, with completion validated against those stated wishlist capabilities.

Written by the indexing model from the issue text.

Description

enhancement
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. 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?
Dominant language
Dart
Stars
10.8k
Forks
1.1k
Avg merge
2d 4h
Merged PRs (30d)
61

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flame-engine/flame

All issues in flame-engine/flame

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.