Hello everyone,
I am building a little floating robot and want it to sink a little bit then go back up, i cant seem to figure out a way to do this. Anyone have any suggestions?
Thanks
These forums are CLOSED. Please visit the new forums HERE
Floating bot |
|
|
Richard Woodin
Registered User
Join date: 8 Jul 2006
Posts: 6
|
08-01-2008 11:25
Hello everyone,
I am building a little floating robot and want it to sink a little bit then go back up, i cant seem to figure out a way to do this. Anyone have any suggestions? Thanks |
|
Water Rogers
Registered User
Join date: 1 May 2003
Posts: 286
|
08-01-2008 14:04
Is it physical?
Check out ll(MoveTo)Target, llSetHoverHeight, etc... read up on physics stuff on the wiki If it's not physical than SetPos'll do it's thang. _____________________
For the more technically minded - the problem is actually NOT the asset server (or 'asshat' as you prefer to affectionately call it herein). |
|
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
|
08-01-2008 21:31
Hmm, if the object is physical I'd also suggest trying llSetBuoyancy(), you could set it lower to make the bot drop a bit, then set it back to normal to have it bob back up. Granted, I've not actually tried that but it's an idea.
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
08-01-2008 21:48
That should work Talon, I have a floating bot, but I don't have it 'bob', but I do have buoyancy set so that it doesn't 'bottom out' which it tends to do from time to time without the buoyancy being set.
http://www.secondscripter.com _____________________
My tutes
http://www.youtube.com/johanlaurasia |
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
08-02-2008 04:11
Is it an avatar? If so, you can do the bobbing as an animation.
|
|
Richard Woodin
Registered User
Join date: 8 Jul 2006
Posts: 6
|
08-03-2008 21:00
Thanks guys, i got it working with llSetHoverHeight, It looks cool
Thanks |
|
Richard Woodin
Registered User
Join date: 8 Jul 2006
Posts: 6
|
08-04-2008 20:04
Ok,well i kinda jumped in without reading, llSetHoverHeight doesnt work over 64m off the ground, i need something that will work over 64m off the ground, and i cant get anything to work. Any more suggestions?
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-04-2008 21:51
That seems to be the maximum DIFFERENCE in height (between the target height and the object's current height); just like the target for llMoveToTarget() must be within 50m or so for it to have any effect. So you need to get it close first. Perhaps use a height no more than 60m different from the object's current one and keep updating it until you are within 60m of the height you want. See http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetHoverHeight
|