Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Hovering Temporarily

Rook Newell
Registered User
Join date: 28 Jan 2006
Posts: 2
01-29-2006 08:53
I need to make a prim hover for a while, move, then stop hovering.

To get it to hover i used:
llSetBuoyancy(0);
llGroundRepel(2, FALSE, 1);

...but when it's done moving i can't get it to drop to the ground again by putting its buoyancy back to normal. Can anyone plz tell me what i've done wrong or a better way of doing it?

-Rook
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
01-29-2006 09:49
From: Rook Newell

To get it to hover i used:
llSetBuoyancy(0);
llGroundRepel(2, FALSE, 1);



Setting the buoyancy to 0.0 basically does nothing -- it tells the object to act as if normal gravity is in effect. If I had to guess, when you say you're putting its buoyancy back to normal, you're probably doing llSetBuoyancy(1.0), which actually is the number you'd use to completely counteract gravity. You'll also need to turn off the llGroundRepel()... and I can't find any clear answer on how one does that. I'd have to guess llGroundRepel(0, FALSE, 1) would work.

If you just typoed in your examples here, then maybe your object has "settled", and the physics engine has decided it isn't going to be moving and it doesn't need to pay attention to the object. Simple solution: give it a light "tap" downward using llApplyImpulse(<0,0,1>,FALSE).
Rook Newell
Registered User
Join date: 28 Jan 2006
Posts: 2
01-29-2006 11:11
Apologies, i did have the buoyancies the wrong way 'round, and "cancelling" the ground repel worked fine.

Thanks for the aid.

-Rook