This function removes a fixture from an instance.


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.


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.

Back: Fixtures
Next: physics_fixture_set_box_shape
© Copyright YoYo Games Ltd. 2018 All Rights Reserved