Added Box2D dependency

Created Box2DComponent to store Box2D body
Created Box2DPhysicsSystem to generate world objects and iterate physics
Created Box2DBodySystem to propagate VelocityComponent to Box2D bodies
This commit is contained in:
Collin Smith
2019-11-17 03:08:42 -08:00
parent 5d077652ea
commit 222fe7077a
4 changed files with 209 additions and 0 deletions

View File

@ -138,6 +138,10 @@ project(":desktop") {
compile "com.badlogicgames.gdx:gdx-controllers-platform:$gdxVersion:natives-desktop"
}
dependencies {
compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
}
dependencies {
compile group: 'commons-cli', name: 'commons-cli', version: cliVersion
}
@ -160,6 +164,15 @@ project(":android") {
implementation "com.badlogicgames.gdx:gdx-controllers-android:$gdxVersion"
}
dependencies {
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86_64"
}
repositories {
jcenter()
}
@ -191,6 +204,11 @@ project(":core") {
compile group: 'com.google.flatbuffers', name: 'flatbuffers-java', version: '1.9.0'
}
dependencies {
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
compile "com.badlogicgames.box2dlights:box2dlights:1.4"
}
dependencies {
testCompile 'junit:junit:4.12'
testCompile "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"