physics_fixture_set_circle_shape

This function sets the shape of the fixture to that of a circle with the specified radius.

Syntax:

GML Code Example

physics_fixture_set_circle_shape(fixture, rad)


Argument Description
fixture the index of the fixture
rad radius of the circle


Returns: N/A


Description

This function defines a circle shape for your fixture with a radius defined by the argument "rad".


Example:

GML Code Example

physics_fixture_set_circle_shape(fix_Ball, sprite_get_width(spr_Ball) / 2);

The code above will apply a circle shape to the fixture indexed in the variable "fix_Ball" with a radius the same as that of the width of the sprite "spr_Ball" divided by 2.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here