Heapfree
Member
|
Cam rotation - invert Y axe (aka inverted Mouselook)
Hello there.
I've tried the "3D" Tutorial, and there seems to be an easy way to handle camera rotation with the "CAMH_ROT" flag with function CamHandle.
Is there an also easy way to invert the Y axe when yousing this method?
(so when moving mouse up, the camera is looking down...et vice versa)
If that's not possible with "CamHandle", how would i accomplish the same procedur with "Camera" and "Cam" ?
I've tried to search all threads to no avail...wondering that this hasn't been asked yet.
Thank you in advance!
EDIT: ok i've found a way in those advanced tutorials.
in "Geometry/Camera.cpp" there is an example showing how to handle the camera "manually".
i guess that would be the way to go and leave CamHandle alone (would need the source code to modify it/add an additional "invert" flag).
(This post was last modified: 01-24-2011 12:31 AM by Heapfree.)
|
|
01-23-2011 11:49 PM |
|
llynx
Member
|
RE: Cam rotation - invert Y axe (aka inverted Mouselook)
just negate the delta?
Code:
dy =Ms.d().y*-1.7f;
instead of
something like that work for you?
Code:
Cam.pitch-=Ms.d().y;
or like that, it all depends what how you implemented the camera
(This post was last modified: 01-24-2011 05:51 PM by llynx.)
|
|
01-24-2011 05:45 PM |
|