Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Vehicle Problem Up/Down

Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
12-03-2009 11:30
When trying to sent my vechicle just up or down by setting the motor to <0, 0, 20>.

It goes up and foward/back, but wont go just up?
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
12-04-2009 02:22
Anyone?
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-04-2009 02:25
not enough information.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
12-04-2009 03:19
Well that's the weird thing

I just don't see why it's doing it, I mean <0,0,20> for linear motor seems kinda clear but it's still going up and foward/down and back?

Paramater wise I've played around with linear friction to see if that was doing it, but no joy.

I'll post extra code up later.
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
12-04-2009 04:12
As Void says, there's not really enough information to go on as yet, but you might want to play with your vehicle's VEHICLE_ANGULAR_MOTOR_DIRECTION component (if it's a plane, that is). If you reduce the y vector of that, it should point the nose up, thus making you rise as you move forward.
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
12-04-2009 07:40
hmm not letting me post my code i've had to spread across posts..

Ok heres more:


On control Up

curDir.z = 20;

llSetVehicleVectorParam( VEHICLE_LINEAR_FRICTION_TIMESCALE, <10, 10, 10>;);
llSetVehicleFloatParam( VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, .1);
llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <0, 0, curDir.z>;);


Paramaters set on start

llSetVehicleType( VEHICLE_TYPE_AIRPLANE);

llSetVehicleFloatParam( VEHICLE_ANGULAR_FRICTION_TIMESCALE, 400);
llSetVehicleVectorParam( VEHICLE_LINEAR_FRICTION_TIMESCALE, <2, 10, 10>;);

llSetVehicleVectorParam( VEHICLE_LINEAR_MOTOR_DIRECTION, <0,0,0>;);
llSetVehicleFloatParam( VEHICLE_LINEAR_MOTOR_TIMESCALE, 1);
llSetVehicleFloatParam( VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 120);

llSetVehicleFloatParam( VEHICLE_ANGULAR_MOTOR_TIMESCALE, 1);
llSetVehicleFloatParam( VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 900);

llSetVehicleFloatParam( VEHICLE_HOVER_HEIGHT, 0);
llSetVehicleFloatParam( VEHICLE_HOVER_EFFICIENCY, 0 );
llSetVehicleFloatParam( VEHICLE_HOVER_TIMESCALE, 50 );
llSetVehicleFloatParam( VEHICLE_BUOYANCY, 1 );

llSetVehicleFloatParam( VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 1 );
llSetVehicleFloatParam( VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 1 );

llSetVehicleFloatParam( VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 1);
llSetVehicleFloatParam( VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 2);

llSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 0.3);
llSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_TIMESCALE , 8);

llSetVehicleFloatParam( VEHICLE_BANKING_EFFICIENCY, 0.9);
llSetVehicleFloatParam( VEHICLE_BANKING_MIX, .85);
llSetVehicleFloatParam( VEHICLE_BANKING_TIMESCALE, 0.3);


llRemoveVehicleFlags(

VEHICLE_FLAG_NO_DEFLECTION_UP |
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

);

llSetVehicleFlags(

VEHICLE_FLAG_MOUSELOOK_BANK |
VEHICLE_FLAG_LIMIT_ROLL_ONLY

);
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
12-04-2009 07:44
Angular

llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRE CTION, < *.9, *.7, TIMES *.4>

The word "PI" is before the *. but for some reason the forum wont let me post that
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
12-04-2009 07:44
llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, < *.9, *.7, TIMES *.4>
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-04-2009 14:44
you have two motors... the angular and the linear.....

and on top of that you have hover and buoyancy, so I wouldn't be suprised if wind is affecting it too....
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
12-04-2009 17:40
It's mouse look controled so they both need to be set.
Thickbrick Sleaford
Baffled
Join date: 28 Dec 2006
Posts: 26
12-06-2009 17:50
Maybe it's deflection converting the up movement into forward movement?

http://wiki.secondlife.com/wiki/Linden_Vehicle_Tutorial#Linear_and_Angular_Deflection