Adding 2D vector movement with rotation applied
- by Michael Zehnich
I am trying to apply a slight sine wave movement to objects that float around the screen to make them a little more interesting. I would like to apply this to the objects so that they oscillate from side to side, not front to back (so the oscillation does not affect their forward velocity).
After reading various threads and tutorials, I have come…