MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / setSpeed

Method setSpeed

Source/Node/Model.cpp:268–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void Model::setSpeed(float speed) {
269 if (_speed != speed) {
270 _speed = std::max(speed, 0.0f);
271 for (const auto& animationGroup : _animationGroups) {
272 for (const auto& animation : animationGroup->animations) {
273 animation->setSpeed(_speed);
274 }
275 }
276 Playable::setSpeed(speed);
277 }
278}
279
280void Model::setReversed(bool var) {
281 if (_reversed != var) {

Callers 5

runMethod · 0.45
playable_set_speedFunction · 0.45
action_set_speedFunction · 0.45
motorjoint_set_speedFunction · 0.45
setMotorDirectionMethod · 0.45

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected