Gets or sets the linear damping of an instance.


GML Code Example


Returns: Real


This variable can be used to set the linear damping of the instance, or it can be used to get the current linear damping. The damping is the amount of "resistance" to forward movement that the physics enabled instance has, with a lower value permitting the instance to move and accelerate faster and a higher value making it require a more forceful push.


GML Code Example

if place_meeting(phy_position_x, phy_position_y, obj_Water)
    phy_linear_damping = 10;
    phy_linear_damping = 3;

The above code will check for a collision between the calling instance and instances of "obj_Water" and change the linear damping accordingly.

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