Skip to content

Jkly/gdx-box2d-kotlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Download Release

Kotlin DSL for LibGDX Box2D

A DSL for creating rigidbodies.

Example

val world = World(Vector2.Zero, false)

addTo(world) {
    body(def {
            type = BodyDef.BodyType.DynamicBody
            angle = angle
            bullet = true
        }) {
        circle {
            radius = 5f
            isSensor = true
            filter {
                groupIndex = 1
                categoryBits = 0x0000
            }
        }
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages