Ok – so this is going to be a pretty abstract question, but I guess I’m wondering if it’s in fact possible. Say you have a game world and there is a bubble of green water, when it collides with a wall or surface, the bubble pops and the water that was in the bubble goes over the surface coloring it in green.
Is there a way with probably Box2D to generate the surface coloring based on the trajectory and force of the collision of the bubble? So if the bubble was to hit from a different angle it would generate a different sprite.
It’s a mathematically solvable problem, I know, because I’ve mapped it out physics wise, but I’m just stuck in the transfer between paper and code.