Got the simple pattern movement working just fine and started in on a system of movement with a set of instructions for more complex and/or sudden movements. It’s actually mostly done, except for one crucial formula.
Movement instructions are saved as an offset vector and an amount of time to cover that distance in — simple enough if the entity is supposed to move at a constant speed, where I can just compare the elapsed time against the total time and set the current offset to match that ratio. However, I also want to have ‘ease in/ease out’ options, allowing the time to be skewed either towards the end or beginning of the motion. So, before I can finish this class, I need to figure out a way to get a movement ratio value from the curve defined by the ease in/out values and the current time:total time ratio.
So that’s what I’m thinking about.