scaling


Description:

public void scaling (Vector2f factors)

Scale the object.

This function multiplies the current scale of the object, unlike setScale which overwrites it. Thus, it is equivalent to the following code:

sf.Vector2f scale = object.getScale();
object.setScale({scale.x * factor.x, scale.y * factor.y});

Parameters:

factors

factorScale

See also:

setScale