Sets the friction of this game object's physics body. In Arcade Physics, friction is a special case of motion transfer from an "immovable" body to a riding body.
name | type | arguments | Default | description |
---|---|---|---|---|
x | number |
The amount of horizontal friction to apply, [0, 1]. |
||
y | number | <optional> | x |
The amount of vertical friction to apply, [0, 1]. |
This Game Object.