Jump to content
Sign in to follow this  
Scud

Pilot View

Recommended Posts

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

hmmm tough question I know but I thought someone would have an idea.

Share this post


Link to post
Share on other sites

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

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

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

Right on the money  biggrin_o.gif 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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×