loop
Utility builder method for constructing fixtures with looped ChainShape.
Return
FixtureDefinition with Fixture properties.
Parameters
will be converted to ChainShape points. Will be looped.
inlined. Allows to modify FixtureDef properties. Receives ChainShape as first (it
) argument.
See also
Utility builder method for constructing fixtures with looped ChainShape. 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
will be converted to ChainShape points. Will be looped. Each two adjacent numbers represent a point's X and Y.
inlined. Allows to modify FixtureDef properties. Receives ChainShape as first (it
) argument.
See also
Utility builder method for constructing fixtures with looped ChainShape.
Return
a fully constructed Fixture with looped ChainShape.
Parameters
will be converted to ChainShape points. Will be looped.
inlined. Allows to modify FixtureDef properties. Receives ChainShape as first (it
) argument.
See also
Utility builder method for constructing fixtures with looped ChainShape. 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 looped ChainShape.
Parameters
will be converted to ChainShape points. Will be looped. Each two adjacent numbers represent a point's X and Y.
inlined. Allows to modify FixtureDef properties. Receives ChainShape as first (it
) argument.