A DSL for creating rigidbodies.
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
}
}
}
}