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

Method setPosition

Source/GameObject.cpp:282–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void GameObject::setPosition(const ax::Vec2& pos)
283{
284 Sprite::setPosition(pos);
285 _parentMatrix = getNodeToParentTransform();
286 if (_hasGlow)
287 _glowSprite->setPosition(pos);
288 if (_hasParticle)
289 _particle->setPosition(pos);
290}
291void GameObject::setRotation(float rotation)
292{
293 Sprite::setRotation(rotation);

Callers 15

updateMethod · 0.95
updateCameraMethod · 0.80
onKeyPressedMethod · 0.80
updateMethod · 0.80
initMethod · 0.80
updateBGColorMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
setStringMethod · 0.80
updateSpriteBGSizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected