The Wayback Machine - https://web.archive.org/web/20200628105115/https://github.com/photonstorm/phaser/issues/5100
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong doc for `gameobject.body.drag` #5100

Open
A-312 opened this issue Apr 19, 2020 · 2 comments · May be fixed by #5115
Open

Wrong doc for `gameobject.body.drag` #5100

A-312 opened this issue Apr 19, 2020 · 2 comments · May be fixed by #5115
Labels

Comments

@A-312
Copy link

@A-312 A-312 commented Apr 19, 2020

Version

Last doc

Description

The documentation doesn't provide the good description for gameobject.body.drag.

URL: https://photonstorm.github.io/phaser3-docs/Phaser.Physics.Arcade.Body.html#useDamping__anchor

Example Test Code

gameobject.body.drag = 0.5; // doesn't work because `drag` is Vector2.
gameobject.body.setDrag(0.5); // works

Additional Information

The documentation should be updated to type -> Vector2

samme added a commit to samme/phaser that referenced this issue Apr 21, 2020
@samme
Copy link
Contributor

@samme samme commented Apr 21, 2020

drag is a number only if useDamping is true.

@samme
Copy link
Contributor

@samme samme commented Apr 29, 2020

I was wrong. @hexus reopen?

@hexus hexus reopened this Apr 29, 2020
@hexus hexus added the 📖 Docs label Apr 29, 2020
samme added a commit to samme/phaser that referenced this issue Apr 29, 2020
@samme samme linked a pull request that will close this issue Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.