How do you get a vector from the last frame?

I have a piece of code where it is important for me to get the previous Vector to add to the current Vector in order to get their sum as a new Vector. Since it’s inside a task, how do I save the previous Vector without getting overwritten?

You’ll have to store it yourself, somewhere. Using setPythonTag to store the previous vector is an option.

Yes. If you use setFluidPos at all times, you will be able to get the velocity vector by taking getPosDelta() and dividing it by globalClock.getDt().