SetEntityFriction()

Syntax

SetEntityFriction(#Entity, Friction)
Description
Changes the friction of the specified #Entity. It affect how the entity will react when colliding with other entities. If the friction is set to an high value, it willn't slide a lot.

To have any effect, the physic engine needs to be activated with the EnableWorldPhysics().

The command SetEntityMass() will also affect the entity friction.

Supported OS

Windows, Linux

<- SetEntityAnimationTime() - Entity Index - SetEntityMass() ->