Constant Pitch
by Guimo · in Torque Game Engine · 07/19/2006 (10:25 am) · 0 replies
Hi,
I'm away for my PC at this moment, but just a quick question... in order to keep a constant pith for my FlyingVehicle (no climb/dive) would it be possible to set:
function turnLeft( %val )
{
$mvYawRightSpeed = %val ? $Pref::Input::KeyboardTurnSpeed : 0;
$mvPitch = 0;
}
function turnRight( %val )
{
$mvYawLeftSpeed = %val ? $Pref::Input::KeyboardTurnSpeed : 0;
$mvPitch = 0;
}
function accelerate(%val)
{
$mvForwardAction = %val * $movementSpeed;
$mvPitch = 0;
}
moveMap.bind( keyboard, left, turnleft );
moveMap.bind( keyboard, right, turnright );
moveMap.bind( keyboard, up, accelerate );
May this work?
Luck!
Guimo
I'm away for my PC at this moment, but just a quick question... in order to keep a constant pith for my FlyingVehicle (no climb/dive) would it be possible to set:
function turnLeft( %val )
{
$mvYawRightSpeed = %val ? $Pref::Input::KeyboardTurnSpeed : 0;
$mvPitch = 0;
}
function turnRight( %val )
{
$mvYawLeftSpeed = %val ? $Pref::Input::KeyboardTurnSpeed : 0;
$mvPitch = 0;
}
function accelerate(%val)
{
$mvForwardAction = %val * $movementSpeed;
$mvPitch = 0;
}
moveMap.bind( keyboard, left, turnleft );
moveMap.bind( keyboard, right, turnright );
moveMap.bind( keyboard, up, accelerate );
May this work?
Luck!
Guimo
About the author