MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / updatePosition

Method updatePosition

source/game/StarNetworkedAnimator.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void NetworkedAnimator::DynamicTarget::updatePosition(Vec2F const& p) {
43 clearFinishedAudio();
44 position = p;
45 for (auto& audioPair : currentAudioBasePositions)
46 audioPair.first->setPosition(audioPair.second + p);
47}
48
49void NetworkedAnimator::DynamicTarget::clearFinishedAudio() {
50 for (auto& p : statePersistentSounds) {

Callers 6

updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateAnimatorsMethod · 0.80
updateAnimatorsMethod · 0.80
updateMethod · 0.80

Calls 1

setPositionMethod · 0.45

Tested by

no test coverage detected