Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Making a Vehicle Bank Faster

Rebecca Naidoo
Registered User
Join date: 28 May 2008
Posts: 82
05-30-2008 06:04
My vehicles current settings are:

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

llSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 0.8);
llSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_TIMESCALE , 2);

llSetVehicleFloatParam( VEHICLE_BANKING_EFFICIENCY, 1);
llSetVehicleFloatParam( VEHICLE_BANKING_MIX, .85);
llSetVehicleFloatParam( VEHICLE_BANKING_TIMESCALE, 0.01);

llSetVehicleVectorParam( VEHICLE_ANGULAR_MOTOR_DIRECTION, <PI*4, PI*4, PI*4>;);

,

What could I change or add to make it turn/bank faster.
revochen Mayne
...says
Join date: 14 Nov 2006
Posts: 198
05-30-2008 06:45
i'm not that sure yet but the values to change for turn are in the control event.
look for the 'CONTROL_LEFT' and 'CONTROL_RIGHT' if cases in it.
in these code blocks should be the values to change... or is there a global 'turnspeed' variable maybe? some scripts have these too

=)
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
05-30-2008 09:29
look for llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, motor);
in your script.
The X component, motor.x triggers banking behavior
_____________________
From Studio Dora
Rebecca Naidoo
Registered User
Join date: 28 May 2008
Posts: 82
05-30-2008 10:44
Hi.

The Angular Motor Direction is in the paramaters I posted.


What does the Z property of VEHICLE_ANGULAR_MOTOR_DIRECTION do?
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
05-30-2008 11:33
very good
Did you try to change any of this <PI*4, PI*4, PI*4>
particularly the x component?
_____________________
From Studio Dora
Rebecca Naidoo
Registered User
Join date: 28 May 2008
Posts: 82
05-30-2008 15:04
The problem I'm having is strange,

When it turns, its turning very fast, however the power takes awhile to transfer from going in the old direction to the new one.

Any ideas what would control this?
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
05-30-2008 17:31
if it uses a timer lower it to like 1 or even .2 if that is what is happening, happend to me many times
Pedlar Decosta
Registered User
Join date: 7 May 2007
Posts: 12
banking vehicles
05-30-2008 17:47
I'm not sure if this is relative or not, but I have noticed when playing around with vehicles, that the banking seems slow. The reason for it is that the vehicle rotates around centre axis of the vehicle. So there is a period where the vehicle seems to still go in the opposite direction. Once the bank rotation is achieved the vehicle then seems to respond as youwould expect. I have not done a lot with vehicles, but I have had only limited success in offsetting the initial banking motion. I think that the reason this doesn't work as it would in real is that the central axis of the vehicle in SL is not the same as the axis of the vehicle in real life. this is probably amplified even more by non existant wind resistance or at least psuedo resistances not reacting with the same places on the vehicle as in real.
Ok. That achieved nothing I guess lol. Unless that is the same problem and it helps you visualize what existing options are available to tweak that might improve the start of the bank. If ...for eg, when the left or right arrow was hit as well as rotating the vehicle could give a short spurt of 'straffe' (think thats what its called) in the direction of the arrow key... ?