edge
Utility builder method for constructing fixtures with EdgeShape.
Return
FixtureDefinition with Fixture properties.
Parameters
first point of the EdgeShape. See EdgeShape.getVertex1.
second point of the EdgeShape. See EdgeShape.getVertex2.
inlined. Allows to modify FixtureDef properties. Receives EdgeShape as first (it
) argument.
See also
Utility builder method for constructing fixtures with EdgeShape. Note that this method consumes floats instead of Vector2 instances, which might be less concise, but also creates slightly less garbage. This method is advised to be used instead of the Vector2-consuming variant on mobile devices.
Return
FixtureDefinition with Fixture properties.
Parameters
position of first point of the EdgeShape on X axis. See EdgeShape.getVertex1.
position of first point of the EdgeShape on Y axis. See EdgeShape.getVertex1.
position of second point of the EdgeShape on X axis. See EdgeShape.getVertex2.
position of second point of the EdgeShape on Y axis. See EdgeShape.getVertex2.
inlined. Allows to modify FixtureDef properties. Receives EdgeShape as first (it
) argument.
See also
Utility builder method for constructing fixtures with EdgeShape.
Return
a fully constructed Fixture with EdgeShape.
Parameters
first point of the EdgeShape. See EdgeShape.getVertex1.
second point of the EdgeShape. See EdgeShape.getVertex2.
inlined. Allows to modify FixtureDef properties. Receives EdgeShape as first (it
) argument.
See also
Utility builder method for constructing fixtures with EdgeShape. Note that this method consumes floats instead of Vector2 instances, which might be less concise, but also creates slightly less garbage. This method is advised to be used instead of the Vector2-consuming variant on mobile devices.
Return
a fully constructed Fixture with EdgeShape.
Parameters
position of first point of the EdgeShape on X axis. See EdgeShape.getVertex1.
position of first point of the EdgeShape on Y axis. See EdgeShape.getVertex1.
position of second point of the EdgeShape on X axis. See EdgeShape.getVertex2.
position of second point of the EdgeShape on Y axis. See EdgeShape.getVertex2.
inlined. Allows to modify FixtureDef properties. Receives EdgeShape as first (it
) argument.