Set an absolute scale value to the entity.
Different values to x
and y
can be set in order to distort entity sprite.
// set entity sprite size to 200% of its original bitmap size entity.SetScale(vector2(2.0f, 2.0f));
// shrink entity width to the half of its original sprite size entity.SetScale(vector2(0.5f, 1.0f));