phy_inertia

Returns the inertia of the instance.

Syntax:

GML Code Example

phy_inertia;


Returns: Real


Description

Inertia is the measure of how hard it is to make something start or stop moving, so the lower the value for this read-only variable and the easier it will be to set the instance in motion, while higher values will require more force to start it moving.


Example:

GML Code Example

physics_mass_properties(70, -10, -10, phy_inertia);

The above code will change the mass and center of mass of the instance while maintaining the inertia value.





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