| 298 | _particle->setRotation(rotation); |
| 299 | } |
| 300 | void GameObject::setScaleX(float scalex) |
| 301 | { |
| 302 | Sprite::setScaleX(scalex); |
| 303 | _parentMatrix = getNodeToParentTransform(); |
| 304 | if (_hasGlow) |
| 305 | _glowSprite->setScaleX(scalex); |
| 306 | if (_hasParticle) |
| 307 | _particle->setRotation(scalex * (isFlippedX() ? -1.f : 1.f)); |
| 308 | } |
| 309 | void GameObject::setScaleY(float scaley) |
| 310 | { |
| 311 | Sprite::setScaleY(scaley); |
no test coverage detected