Set skateboard (gameobject) to rotate with OVR camera

I have a skateboard (gameobject) that stands still when I look around with the oculus rift’s OVRCameraController.

It does follow around, but it just stands there facing north instead of heading where the player is looking.

Please help D:


nevermind i figured myself
var dir : Vector3;
dir = Camera.main.transform.forward; // forward
// dir = -Camera.main.transform.forward; // back
// dir = Camera.main.transform.right; // right;
// dir = -Camera.main.transsform.left; // left;

dir.y = transform.position.y
transform.Translate(dir * speed * Time.deltaTime);