Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How do I STOP a very large object??

Paradigm Brodsky
Hmmm, How do I set this?
Join date: 28 Apr 2004
Posts: 206
10-01-2004 16:21
I have a very large vehicle that is very close the the prim limit. I am having trouble finding a method to stop this thing completely without turning off physics.

I used to have the breaks turn off Physics untill I found out that passengers send me over the prim limit, and if they are sitting when physics goes off, then I can't put physics back on due to the prim limit, and the vehicle will just be stuck untill everyone unsits. :-(

So I need another method. I tried
CODE
 llApplyImpulse(-llGetVel() * llGetMass(), TRUE); 

but that doesn't seem to do anything at all!! Even when all vehicle vector velocity is set to <0,0,0> aswell.

any help
Nikolai Weber
Junior Member
Join date: 21 Nov 2003
Posts: 5
10-01-2004 17:29
Try dropping the friction timescales very low after setting the motor to <0,0,0>.

Something like:
CODE

stop() {
llSetVehicleFloatParam(VEHICLE_LINEAR_FRICTION_TIMESCALE, 0.5);
llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, ZERO_VECTOR);
}

should do the trick :)
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
10-01-2004 21:38
CODE

llMoveToTarget( llGetPos(), 0.2 );
_____________________
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
10-01-2004 23:05
Do what Nikolai said and then do what Azelda said. Call llMoveToTarget(llGetPos(), 0); when you are ready to start moving again.
Paradigm Brodsky
Hmmm, How do I set this?
Join date: 28 Apr 2004
Posts: 206
10-03-2004 01:57
Thanks guys. I tried the Friction thing before, but I didn't know which way to put iy, way up or way down. Another thing though is that I used <0,0,0> instead of ZERO_VECTOR for the velocity, I wonder it that has anything ot do with it too.

Azelda, I think I'm falling in love with you. lol thanks lots again.

I could really use a better explanation of the vehicle prameters. For starters, which way increases the property and which way decreses it. Is 1.0 maximum friction or no friction at all? Just as example.

The Wiki does explain these well. :-/
Nikolai Weber
Junior Member
Join date: 21 Nov 2003
Posts: 5
10-03-2004 04:12
The Friction timescales define how long friction takes to bring the vehicle to a complete stop, so lower is faster.
In my example above, the friction would stop the vehicle in 0.5 seconds. To disable friction you set the values ridiculously high (10000).

As the wiki says, vehicle stuff is actually very well described in the lsl documentation (lsl_guide.html in your SL root directory)
Paradigm Brodsky
Hmmm, How do I set this?
Join date: 28 Apr 2004
Posts: 206
10-04-2004 05:42
Thanks. I did the friction thing and it works pretty well. Well enough anyway. Doesn't stop it completely for some reason. I think some other setting is interfearing. The ship drifts up now when stopped. I need to change the boyancy or something.

Suprizingly the Move to Target didn't work. 0.o I don't understand why it seems to have no effect, but "they" say not to use that with vehicles anyway due to unpredictable results.

I went to the lsl manual. Yeah it's pretty good with vehicle coverage. I haven't looked at it since I first started with lsl and found the wiki to be my only hope. I have it on mozlia's hotbar now that I'm learning vehicles, next to the wiki link. Thanks.