This function removes a fixture from an instance.


GML Code Example

physics_remove_fixture(id, fixture)

Argument Description
id The ID of the instance to remove the fixture from
fixture The ID of the fixture that is to be removed from the instance

Returns: N/A


This function removes (or "un-binds") a fixture from an instance or instances. It requires the unique "id" of the bound fixture (as returned by the function physics_fixture_bind and it will remove all the currently defined physics properties for the instance, permitting you to redefine a new fixture and bind that to the instance. In this way you can change the instances physical properties without having to destroy and re-create it.


GML Code Example

physics_remove_fixture(id, my_fix);

The code above will remove the fixture with the "id" stored in the variable "my_fix" from the instance.

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