This function sets the angular damping value of a fixture.


GML Code Example

physics_fixture_set_angular_damping(fixture, damping)

Argument Description
fixture the index of the fixture
damping the angular damping of the fixture, usually between 0 and 1

Returns: N/A


If you think about any rotating object in the "real world", unless it has a motor or is in space, it slows down over time due to the influence of external forces (like friction with the air around it). We can use the function physics_fixture_set_angular_damping() in GameMaker: Studio to simulate this effect and reduce the velocity of rotation of instances in the physics world, as, without it, any rotating instance would continue to rotate infinitely. Damping parameters should be between 0 and infinity, with 0 meaning no damping, and infinity meaning full damping. Normally you will use a damping value between 0 and 1.


GML Code Example

physics_fixture_set_angular_damping(fix_Ball, 0.1);

The code above will set the angular damping of the fixture indexed in "fix_ball" to 0.1.

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