physics_fixture_set_circle_shape

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

 

Syntax:

physics_fixture_set_circle_shape(fixture, rad)

ArgumentTypeDescription
fixturePhysics Fixture IDthe index of the fixture
radRealradius of the circle

 

Returns:

N/A

 

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.