https://github.com/g3th/libgdx-box2d-shape-factory
Create Shapes in LibGDX Box2D
https://github.com/g3th/libgdx-box2d-shape-factory
android box2d-physics-engine games libgdx shapes
Last synced: 3 months ago
JSON representation
Create Shapes in LibGDX Box2D
- Host: GitHub
- URL: https://github.com/g3th/libgdx-box2d-shape-factory
- Owner: g3th
- Created: 2024-11-11T23:34:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-12T01:43:01.000Z (over 1 year ago)
- Last Synced: 2025-03-05T00:27:32.598Z (over 1 year ago)
- Topics: android, box2d-physics-engine, games, libgdx, shapes
- Language: Kotlin
- Homepage:
- Size: 8.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# LibGDX: Box2D Shape Factory
## Construct and place shapes in your world
https://github.com/user-attachments/assets/77429144-dd74-4606-9601-8776944b8baf
Creating and placing shapes is simple in Box2D, particularly when using libgdx and Kotlin. Being considerably less verbose/convoluted than Java, it is easier to create a factory through abstract class, interfaces and inheritance.
This app makes creating shapes in libgdx with Box2D somewhat easier, while still maintaining the same "low-level" abstraction used by libgdx. It uses the available Box2D methods, such as ```setAsBox``` or ```set```, and the most commonly employed shape classes (which inherit from Shape) such as ```Polygon``` or ```Circle```.
Although possible to build in terminal, it is recommended to build through gradle and an editor of your choice, such as Android Studio, IntelliJ or similar.
A signed android app is included to test on any of your android devices.