Skip to content

Box2D-Gravity_v1.0

Latest
Compare
Choose a tag to compare
@mdoradom mdoradom released this 27 Nov 10:05
· 1 commit to main since this release

Release v1.0 - "Gravity Simulation Update"

Overview

Release v1.0 introduces the initial version of the Box2D-Gravity project, a 2D simulation demonstrating Newton's law of universal gravitation. This release marks the foundational implementation of gravitational forces between dynamic bodies within a Box2D physics environment.

Key Updates

  • Basic Gravitational Simulation: Implementation of Newton's law of universal gravitation to simulate gravitational forces between dynamic bodies.
  • Visualization Enhancements: Added visual representation for bodies and their interactions within the simulation.
  • Debug Mode: Incorporated a debug mode for easy observation and analysis of the simulation's behavior.

Example

Box2D Gravity Simulation

Caption: Example of the Box2D Gravity Simulation in action.

Usage

  • F1: Activate / Deactivate debug mode
  • 1: Spawn planet on mouse position
  • 2: Spawn crate (debug purposes)
  • 3: Spawn chain (debug purposes)
  • Left Click: Drag bodies (only if debug mode is ON)

Contributions

We extend our gratitude to all contributors who have contributed to this release by providing valuable feedback, suggestions, and improvements.

Download

You can download the source code and executable from the Releases section.

Known Issues

  • Minor glitches in gravitational interaction between certain body shapes
  • If you move the big planet in debug mode, it doesn't move as intended