MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / setRotation

Method setRotation

Source/GameObject.cpp:291–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289 _particle->setPosition(pos);
290}
291void GameObject::setRotation(float rotation)
292{
293 Sprite::setRotation(rotation);
294 _parentMatrix = getNodeToParentTransform();
295 if (_hasGlow)
296 _glowSprite->setRotation(rotation);
297 if (_hasParticle)
298 _particle->setRotation(rotation);
299}
300void GameObject::setScaleX(float scalex)
301{
302 Sprite::setScaleX(scalex);

Callers 13

onKeyPressedMethod · 0.80
onTouchMovedMethod · 0.80
onTouchBeganMethod · 0.80
drawPropertiesFunction · 0.80
loadLevelMethod · 0.80
changeGameModeMethod · 0.80
resetLevelMethod · 0.80
initMethod · 0.80
addCustomSpritesMethod · 0.80
createAndAddParticleMethod · 0.80
setScaleXMethod · 0.80
createFromStringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected