| 03-31-2010, 03:37 PM | #1 |
I am currently writing my own 3rd person camera system, which is unique in the way that it does not automaticly change the angle of attack and rotation, but allows the controlling of both values by using the arrow keys or moving the mouse curser to the borders of the screen. I detect the mouse border events by comparing the last cameraX and Y of the player to the current ones. It works pretty well so far. The only problem is: I can not use SetCameraTargetController, as it completely disables mouse scrolling, which is important for this system to work. I tried periodically setting the Camera targets coordinates by using PanCamera, but it always "cancels" the mouse scrolling so that i need to hit the screen border again instead of just leaving the curser there. To make short: Is there a way to pan a camera without interupting the current mouse scrolling? Neither of the natives I used worked. I used: PanCameraTo PanCameraTimedTo SetCameraPosition I also once tried to set and release the TargetController cam, but it also canceled mouse scrolling. |
| 03-31-2010, 11:05 PM | #2 |
I've tested it out and it didn't work for me neither. =\ I don't think any of the natives for moving the camera don't ruin the scrolling. You could always do some periodic check by tracking the camera's movement, and start the pan only once the newXY == oldXY of the camera position. |
| 04-01-2010, 02:05 PM | #3 | |
Quote:
|
