polygon
Utility builder method for constructing fixtures with PolygonShape. Note that this method consumes a FloatArray instead of array of Vector2 instances, which might be less readable, but 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
optional. If given, will be converted to PolygonShape points. Each two adjacent numbers represent a point's X and Y.
inlined. Allows to modify FixtureDef properties. Receives PolygonShape as first (it
) argument.
See also
Utility builder method for constructing fixtures with PolygonShape.
Return
FixtureDefinition with Fixture properties.
Parameters
will be converted to PolygonShape points.
inlined. Allows to modify FixtureDef properties. Receives PolygonShape as first (it
) argument.
See also
Utility builder method for constructing fixtures with PolygonShape. Note that this method consumes a FloatArray instead of array of Vector2 instances, which might be less readable, but 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 PolygonShape.
Parameters
optional. If given, will be converted to PolygonShape points. Each two adjacent numbers represent a point's X and Y.
inlined. Allows to modify FixtureDef properties. Receives PolygonShape as first (it
) argument.
See also
Utility builder method for constructing fixtures with PolygonShape.
Return
a fully constructed Fixture with PolygonShape.
Parameters
will be converted to PolygonShape points.
inlined. Allows to modify FixtureDef properties. Receives PolygonShape as first (it
) argument.