I am trying to make a simple top down car game and I am wondering if SpriteKit has a way to, simply, move an object based upon its current orientation?
I believe Scratch.com has a feature similar to this where you can move a sprite by its local coordinates or global coordinates. For example, if you have a sprite oriented to look at a corner of the screen, you can change its local x coordinate to move it towards that corner, or you can change its global x coordinate and shift it right.
Does SpriteKit have a similar feature? I want set the car's local velocity, but I can only figure out to set its global velocity. If I want to get the same effect by setting its global velocity, then I have to manipulate the dx and dy variables proportionally to the sprite's rotation, and that's a little more complicated than I wanted to do.
I have tried to move it by the global coordinates, but I would need to calculate the two dx and dy values to produce a vector that points in the direction the car is pointing.