This function applies an angular impulse to a physics enabled instance.


GML Code Example


Argument Description
impulse The impulse (in Newton metres) to be applied

Returns: N/A


This function will give an angular impulse to a physics enabled instance. This impulse will set the angular rotation by the amount given, ignoring the current torque, essentially setting the amount of "spin" that a fixture has. If you wish to apply an angular force to an instance using torque, then you should be using the function physics_apply_torque().


GML Code Example

if keyboard_check(vk_up) physics_apply_angular_impulse(10);

The code above will give the physics enabled fixture an angular impulse if a key is pressed.

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