You may have solved this by now, but in case anybody is interested you can achieve it using a rotation matrix like so: example gist
You may have solved this by now, but in case anybody is interested you can achieve it using a rotation matrix like so: example gist