Sure, that sounds workable.
What you send depends on what you mean by 'rotation'. Cameras have a direction vector and an up vector. You can retrieve them simply with:
Code: Select all
vector3df direction = (camera->getTarget() - camera->getAbsolutePosition()).normalize();
camera->getUpVector();
If you actually want the rotations, then it depends on how many axes you need:
Code: Select all
// Gets X and Y rotations (i.e. pitch and yaw)
vector3df cameraRotations = direction.getHorizontalAngle();
If you need Z (roll), eh, we'll cross that bridge when we come to it.