body
inline fun World.body(type: BodyDef.BodyType = BodyType.StaticBody, init: BodyDefinition.() -> Unit = {}): Body
Type-safe Body building DSL.
Return
a fully constructed Body instance with all defined fixtures.
Parameters
type
BodyType of the constructed Body. Matches libGDX default of BodyType.StaticBody.
init
inlined. Invoked on a BodyDefinition instance, which provides access to Body properties, as well as fixture building DSL. Defaults to no-op.