Docs: correct description for Arcade.Body#drag

Fixes #5100
This commit is contained in:
samme 2020-04-21 11:10:43 -07:00
parent cfe501c338
commit d17c004787

View file

@ -333,10 +333,10 @@ var Body = new Class({
this.allowDrag = true;
/**
* Absolute loss of velocity due to movement, in pixels per second squared.
* When `useDamping` is false (the default), this is absolute loss of velocity due to movement, in pixels per second squared (a vector).
* The x and y components are applied separately.
*
* When `useDamping` is true, this is 1 minus the damping factor.
* When `useDamping` is true, this is 1 minus the damping factor (a number).
* A value of 1 means the Body loses no velocity.
* A value of 0.95 means the Body loses 5% of its velocity per step.
* A value of 0.5 means the Body loses 50% of its velocity per step.