Returns whether the instance is dynamic or not.


GML Code Example


Returns: Boolean


A dynamic instance is one that is fully simulated within the physics world and this read-only variable will return true if the instance being checked is fully simulated or false if it is not.


GML Code Example

if other.phy_dynamic
    with (other)
       var dir;
       dir = point_direction(x, y, other.x, other.y);
       physics_apply_impulse(x, y, x + lengthdir_x(100, dir), y + lengthdir_y(100, dir));

The above code creates a new instance and then defines it as being a "bullet" in the physics world before giving it a massive impulse along the y axis.

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