世界默认情况下,使用的是UTGAME,所以如果你必须要使用默认的话,就只好修改UDK自带的PLAYERCONTROLLER了(强烈不建议,如果你一意孤行,修改如下)
function ProcessViewRotation( float DeltaTime, out Rotator out_ViewRotation, Rotator DeltaRot )
{
out_ViewRotation = LimitViewRotation(out_ViewRotation, -16384, 16383 );
}
}
找到如上函数,并修改LimitViewRotation(out_ViewRotation, -16384, 16383 );里的-16384和16383 数值
function ProcessViewRotation( float DeltaTime, out Rotator out_ViewRotation, Rotator DeltaRot )
{
out_ViewRotation = LimitViewRotation(out_ViewRotation, -16384, 16383 );
}
}
找到如上函数,并修改LimitViewRotation(out_ViewRotation, -16384, 16383 );里的-16384和16383 数值