Game Development Community

Controlling the pitch

by Temasek Polytechnic · in Torque Game Engine · 09/04/2006 (10:21 pm) · 2 replies

Hi.

Does anyone know how to control/restrict the amount of pitch?

Currently, the player is allowed to control the pitch to view the sky.

I want them to only be able to view to a cetain range.

I tried using the "if" statement, but it did not work.

Can anyone help me?

Thank you.

#1
09/04/2006 (11:07 pm)
This might help:
minLookAngle = -1.4;
   maxLookAngle = 1.4;

It's in your player dataBlock.
#2
09/04/2006 (11:26 pm)
WOW!

Thank you so much Tim!!

I did not know about that.