Hello everyone,
I'm currently creating a aircraft and I want to steer by mouselook. However, when I go to the mouselook view when I go up with the mouse I go down and when I go left I go right. Is there anyway to reverse this?
Thanks,
Mike
These forums are CLOSED. Please visit the new forums HERE
Aicraft Woes |
|
Michael Revere
Registered User
Join date: 30 May 2005
Posts: 47
|
12-14-2005 17:47
Hello everyone,
I'm currently creating a aircraft and I want to steer by mouselook. However, when I go to the mouselook view when I go up with the mouse I go down and when I go left I go right. Is there anyway to reverse this? Thanks, Mike |
Michael Revere
Registered User
Join date: 30 May 2005
Posts: 47
|
OK, It's Going In The Correct Direction But
12-14-2005 18:24
OK, I got it going in the right direction but it only goes up and down VERY slowly. What would cause that?
|
Michael Revere
Registered User
Join date: 30 May 2005
Posts: 47
|
Here is the code
12-14-2005 19:23
Here is what I have so far code wise:
// Vehicle Paramaters // Remove All Before Setting llRemoveVehicleFlags(-1); llRemoveVehicleFlags( VEHICLE_FLAG_NO_DEFLECTION_UP | VEHICLE_FLAG_LIMIT_ROLL_ONLY | VEHICLE_FLAG_HOVER_WATER_ONLY | VEHICLE_FLAG_HOVER_TERRAIN_ONLY | VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT | VEHICLE_FLAG_HOVER_UP_ONLY | VEHICLE_FLAG_LIMIT_MOTOR_UP | VEHICLE_FLAG_MOUSELOOK_STEER | VEHICLE_FLAG_MOUSELOOK_BANK | VEHICLE_FLAG_CAMERA_DECOUPLED); // Sets the vehicle type to a basic airplane llSetVehicleType(VEHICLE_TYPE_AIRPLANE); // Steer With Mouse llSetVehicleFlags(VEHICLE_FLAG_MOUSELOOK_STEER); // Hovering llSetVehicleFlags(VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT); llSetVehicleFloatParam(VEHICLE_HOVER_TIMESCALE, 1.0); llSetVehicleFloatParam(VEHICLE_HOVER_HEIGHT,29.00); llSetVehicleFloatParam(VEHICLE_HOVER_EFFICIENCY,1.0); // non-bank mouselook llSetVehicleFlags(VEHICLE_FLAG_MOUSELOOK_STEER); llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_TIMESCALE, 0.5); llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, <0, 30, 30> ); llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 100); llSetVehicleVectorParam(VEHICLE_ANGULAR_FRICTION_TIMESCALE, <100, 1, 5> ); // default rotation of local frame eul = <0,0,180>; eul *= DEG_TO_RAD; //convert to radians quat = llEuler2Rot(eul); llSetVehicleRotationParam(VEHICLE_REFERENCE_FRAME, quat); The problem is that when moving up and down it is doing so VERY slowly. I'm not sure what I'm doing wrong. Could someone help? -Mike |
Jillian Callahan
Rotary-winged Neko Girl
![]() Join date: 24 Jun 2004
Posts: 3,766
|
12-14-2005 21:49
Your angular friction timescale's too short on the Y axis. <1,100,5> would work better.
_____________________
|
Argent Stonecutter
Emergency Mustelid
![]() Join date: 20 Sep 2005
Posts: 20,263
|
A semi-related followup question...
12-15-2005 12:47
I don't understand the linear and angular motors and friction either.
I've been trying to modify the Linden innertubes so they act like real innertube pool toys, which means that unless you're actively paddling the angle you're moving and the angle the tube is facing are completely independent, and there's significant linear friction but very little angular friction. When you start paddling, THEN these two motions get synced up. About the only thing I can think of is keeping the object physical and switching the vehicle mode on only when you start paddling. Any ideas? |
Michael Revere
Registered User
Join date: 30 May 2005
Posts: 47
|
I changed the friction Values
12-15-2005 13:45
I changed the friction values to what you suggested but the it still takes a long time to move the nose of the aircraft up and down. I should mention that the aircraft is going to stay stationary (it is a simulator).
|
Senuka Harbinger
A-Life, one bit at a time
![]() Join date: 24 Oct 2005
Posts: 491
|
12-15-2005 17:39
I changed the friction values to what you suggested but the it still takes a long time to move the nose of the aircraft up and down. I should mention that the aircraft is going to stay stationary (it is a simulator). response of the pitch is in direct relation to your current speed I believe (could be wrong). you would have to set a max lift value for your throttle control if this is the case. _____________________
My SLExchange shop
Typos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not. The function is working perfectly fine. It's just not working the way you wanted it to work. |