box
Utility builder method for constructing fixtures with PolygonShape set as box. Note that - contrary to PolygonShape.setAsBox methods - this method consumes actual not halved box width and height sizes.
Return
FixtureDefinition with Fixture properties.
Parameters
width of the box shape. Defaults to 1f.
height of the box shape. Defaults to 1f
offset of the box position in relation to body center. Defaults to (0f, 0f).
angle of the box in radians. Defaults to 0f.
inlined. Allows to modify FixtureDef properties. Receives PolygonShape as first (it
) argument.
See also
Utility builder method for constructing fixtures with PolygonShape set as box. Note that - contrary to PolygonShape.setAsBox methods - this method consumes actual not halved box width and height sizes.
Return
a fully constructed Fixture with box PolygonShape.
Parameters
width of the box shape. Defaults to 1f.
height of the box shape. Defaults to 1f
offset of the box position in relation to body center. Defaults to (0f, 0f).
angle of the box in radians. Defaults to 0f.
inlined. Allows to modify FixtureDef properties. Receives PolygonShape as first (it
) argument.