API Question resetting the camera to "not leaning"

Moach

Crazy dude with a rocket
Addon Developer
Joined
Aug 6, 2008
Messages
1,582
Reaction score
63
Points
63
Location
Vancouver, BC
well, title says it all, i guess... i can't seem for the life of me to find a finctionn that brings the camera back to the default "unleaned" position :shifty:...

this is an annoyance when changing views between left and right seat on my G42, for if you "tab seats" with the camera leaned, it keeps you relative "leaned" offset (which doesn't make sense when seated on the opposite side)


this is mostly a cumberance... i guess one could learn to live with it, but it's annoying nonetheless... can it be fixed?


thankz :cheers:
 
couldnt you just tie a custom function (within the dll) to swet the tab key to do go to the "not leaned" position. for example, if you just make the tab key move the viewpoint to the other seat, AND remove the camera offset that was made earlier

otherwise, you could redo the "leaning" so it can be undone easier
 
couldnt you just tie a custom function (within the dll) to swet the tab key to do go to the "not leaned" position. for example, if you just make the tab key move the viewpoint to the other seat, AND remove the camera offset that was made earlier

otherwise, you could redo the "leaning" so it can be undone easier


well, that was precisely my question... there's no obvious function in the API that "resets" the camera position to "unleaned"... any workarounds to compensate would surely bring about more trouble than it's worth :facepalm:

i'm not too keen on reinventing the wheel on the leaning thing... that would make it incompatible with the default... and i already got my X52 profile set to use that (and i'm sure others have similar setups as well)


i'm thinking... maybe use directinput to forcefully "inject" the keypresses needed :hmm:
(i've done it before... it just don't wanna HAVE to do it again, if at all possible) :rolleyes:
 
If I understand your problem correctly, press Home. This happens even in the default Atlantis, so I assume it's a bug with Orbiter 2010.
 
i pressed home... the camera rolled back to looking forwards, but the position shift stays the same...

i think i'll rig it by simulating a keypress... :rolleyes:
 
Oh, like leaning leaning! :lol:

The default key to reset that is ctrl+alt+↓. If it can't be reassigned I guess the user will have to press it whenever he changes positions...
 
Back
Top