if (keyframes == null || keyframes.size() == 0) return;
    public void update(float time) {        if (!isActive()) return;        curTime += time * getSpeed();        setBeginAndEnd();        Arrays.fill(haveChanged, false);        delta = endPointTime.time - beginPointTime.time;        if (delta != 0f) delta = (curTime - beginPointTime.time) / delta;        for (int i = 0; i < numObjects; i++) {            updatePivot(i);            pivots[i].applyToSpatial(toChange[i]);        }    }