diff --git a/include/Shapes/Shape.hpp b/include/Shapes/Shape.hpp index 18b4ec3..990a8e1 100644 --- a/include/Shapes/Shape.hpp +++ b/include/Shapes/Shape.hpp @@ -139,18 +139,22 @@ class Shape { void setX(int x) { _x = x; + markDirty(); if (collider) collider->x = x; } void setY(int y) { _y = y; + markDirty(); if (collider) collider->y = y; } void setRotationAngle(float angle) { _rotationAngle = angle; + invalidateTrigCache(); + markDirty(); if (collider) collider->rotation = angle; }