why not use the sprite command set ?
I often use the vector commands or atan2() to point things at objects but i'm thrown by your use of a pivot for the camera ... how is the pivot entity going to be used to relate to the camera ?
You can use the vector commands or atan2() to calculate the bearing between two positions and modify the angle based upon the rotation of your camera or pivot - depening upon which of those two entities is holding your rotational information.
I often use the vector commands or atan2() to point things at objects but i'm thrown by your use of a pivot for the camera ... how is the pivot entity going to be used to relate to the camera ?
You can use the vector commands or atan2() to calculate the bearing between two positions and modify the angle based upon the rotation of your camera or pivot - depening upon which of those two entities is holding your rotational information.