I'm currently updating a project from 3d physics to the new Unity 2D system. Thanks Jean for the excellent new action set! I have all the basic interactions correct, however I can't quite wrap my head around the final stage.
I'd like to store a Vector2 derived from an angle along the z axis, along with a magnitude. I can get the rotation, and the magnitude would be a float variable, but I can't work out the translation of these to a vector2. I don't need to change the rotation and magnitude once set, instead I would blend between vector2s as the player moves around the scene (would be interested to discuss the best way of doing this too).
I'm pretty sure the Trigonometry and Vector2 action sets would contain everything I need, I just couldn't seem to apply the maths.
Edit, thought I'd expand on the blending aspect. Think of moving through a scene, with different regions of wind defined by direction, and magnitude. As the player moves in and out of these different triggers, the vector2s for each of these triggers would be added and removed from an overall value as sensed by the player.
Thanks very much,
Nick