MCPcopy
hub / github.com/4ian/GDevelop / _updateValue

Method _updateValue

Extensions/TweenBehavior/TweenManager.ts:821–836  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

819 }
820
821 protected _updateValue() {
822 const easedProgress = this.easing(this.getProgress());
823 const length = this.initialValue.length;
824 this.currentValues.length = length;
825 for (let index = 0; index < length; index++) {
826 this.currentValues[index] = this.interpolate(
827 this.initialValue[index],
828 this.targetedValue[index],
829 easedProgress
830 );
831 }
832 this.setValue(this.currentValues);
833 if (this.hasFinished()) {
834 this.onFinish();
835 }
836 }
837
838 getValue(): float {
839 return 0;

Callers 2

stepFunction · 0.45
stopFunction · 0.45

Calls 4

onFinishMethod · 0.80
getProgressMethod · 0.65
hasFinishedMethod · 0.65
setValueMethod · 0.45

Tested by

no test coverage detected