Updated ApplyFriction method