Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Physics.Arcade.Body
setDragX(value)
Description:
Sets the Body's horizontal drag.
Parameters:
name
type
description
value
number
The drag, in pixels per second squared.
Returns:
Description:
This Body object.
Type:
Phaser.Physics.Arcade.Body
Since:
3.0.0
Source:
src/physics/arcade/Body.js
(Line
2102
)
Possible examples