create

fun World.create(bodyDefinition: BodyDefinition): Body

Handles additional building properties provided by BodyDefinition and FixtureDefinition. Prefer this method over World.createBody when using BodyDefinition directly.

Return

a fully constructed Body instance with all defined fixtures.

Parameters

bodyDefinition

stores Body properties and optional Fixture definitions.

See also