Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetPos, I said, SETPOS!

Omen Torgeson
Registered User
Join date: 12 Jun 2004
Posts: 155
10-19-2004 16:43
Hello.

I'm trying to use llSetPos to raise and lower an object. The catch: I want to be able to lower it into the dirt (ie, bury it). My script works fine. The object in question rises and lowers at command, it just stops lowering when it hits the ground.

Is it even possible to lower an object into the ground through a script? I can edit-drag it no problem. I've tested to make sure the depth I want it does not pass the (return object to lost and found) limitation. But yet, it still won't budge any lower than maybe a fraction of an inch actually buried in the earth.

Is there a better funtion to use that will bypass this problem?

Thank you,
Omen
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
10-19-2004 17:12
i ran into this the other day myself. looks like you can't use llSetPos to put something undergound. i'm betting your object ended up kinda stuck in the ground but not all the way? it puts the object with its center point at ground level so usually it will be slightly underground. check out this wiki page for more.
Omen Torgeson
Registered User
Join date: 12 Jun 2004
Posts: 155
10-19-2004 17:32
Yeah pretty much. It was partially underground, but not by much. And wasn't stuck in the sense that I couldn't move it back up via the script control. It would... But it would just never go any further into the ground.

Your post just gave me an excellent, albeit, hacky way to get around this.

If it's using the object's center to relate it to the land. I could always just give it a large/invisible prim mass above it to make the center more offset. And in effect, get the visible part of the object underground. If this works, it suits my purposes just fine.

So... Thank you kindly for the response! :D
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-19-2004 18:35
CODE

llSetPrimitiveParams([PRIM_POSITION, pos]);
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Omen Torgeson
Registered User
Join date: 12 Jun 2004
Posts: 155
10-20-2004 00:22
Thanks Strife, I'll give that a go. The hack job worked just fine, but if I can do it in a script rather than a prim...all the better as far as I'm concerned. Cheers,

Omen