Hello! I have a question about the vehicle (boat) script. This line allows the boat to lift its nose depending on the throttle. but something is wrong. the boat raises its nose at first gear and nothing else changes. lifting is not distributed evenly. on the other version of the boat, the nose lift angle was larger and then the distribution was uniform on all gears. Who can tell what it can be and what to change? I guess its some kind of math error made by me trying to decrease nose lift angle.
setNose(integer ang)
{
if(ang<0) ang = 0; else if(ang>10) ang = 10; //50
llSetVehicleRotationParam (VEHICLE_REFERENCE_FRAME, llEuler2Rot( (vehicleRot+<0,ang*0.4,0>) * DEG_TO_RAD));
}
The boat has 10 gears. Top speed is about 20 kts. Nose lift is 10 degrees.