Scud 0 Posted July 30, 2004 I normally just use the preset values but this time I need to restrict the pilots field of vision. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class ViewPilot   {         initFov=0.5500;    minFov=0.3200;    maxFov=0.6500;   initAngleX=0;    minAngleX=-5;    maxAngleX=60;   initAngleY=0;    minAngleY=-90;    maxAngleY=90;      }; This is what I have at the mo. Looking left and right is fine. It stops where I want it to but looking up and down is not working proper. I assume the X value controls this? I need to restrict the pilot from looking down so far. Share this post Link to post Share on other sites
Scud 0 Posted August 4, 2004 hmmm tough question I know but I thought someone would have an idea. Share this post Link to post Share on other sites
Footmunch 0 Posted August 4, 2004 Scud - I'm not sure the config values work as they are supposed to. The other slight possibility is to 'tip' the pilot, so that straight ahead (for the pilot) is actually looking up, relative to the plane. Share this post Link to post Share on other sites
Scud 0 Posted August 4, 2004 Yeah might have to do that even though it upsets the panning view. As I said the Y values work fine. Thanx for reply Footmunch Share this post Link to post Share on other sites
beedee 0 Posted August 6, 2004 the direction of min is towards the skies, max towards the ground. you might try this: minAngleX = -60; maxAngleX = 5; Share this post Link to post Share on other sites
Scud 0 Posted August 6, 2004 Right on the money  beedee thankyou very much. Quote[/b] ]the direction of min is towards the skies, max towards the ground. I would have never of thought that minus meant up. Thanx again. Is that a 'Freedom Fighter' in your avatar pic? Share this post Link to post Share on other sites