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.
The amount of horizontal friction to apply, [0, 1].
Optionaly: numberThe amount of vertical friction to apply, [0, 1]. Default x.
Sets the horizontal friction of this game object's physics body. This can move a riding body horizontally when it collides with this one on the vertical axis.
The amount of friction to apply, [0, 1].
Sets the vertical friction of this game object's physics body. This can move a riding body vertically when it collides with this one on the horizontal axis.
The amount of friction to apply, [0, 1].
Methods for setting the friction of an Arcade Physics Body.
In Arcade Physics, friction is a special case of motion transfer from an "immovable" body to a riding body.