The x position of the center of mass.


GML Code Example


Returns: Real


This read-only variable will return the x position of the instances center of mass. This is calculated automatically based on the density, inertia and mass of the instance as defined by the appropriate functions.


GML Code Example

xx = phy_com_x;
 yy = phy_com_y;

The above code sets two variables to the x and y position of the instances center of mass.

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