Hi,
So my player is a ship rotating in orbit around a planet. Inside the planet i basically have an empty object, to which the ship is parented and then and i use torque velocity change to rotate the empty object.
Right now the camera is parented to the ship, but i don't want the camera to copy the movements of the ship perfectly - smooth follow is what we're talking about here - so i wanted to take the ship's parent rotations over a few frames, put them in an arrayMaker list and average them, and then set this average as the camera's parent rotation.
This works kind of ok(with some jittering issues i think i might be able to fix), but alas when the ships rotation goes over 360 and jumps back to 0 the averaging system of course gives crazy values and the camera goes wild. Any hints on how to fix this? I'm not a math wizard, i'm using playmaker after all =)