Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetPos and buried prims

Rowan Broek
Craftbrewer
Join date: 9 Feb 2007
Posts: 19
04-14-2007 07:30
I'm still a newbie to lsl, but have more years than I care to admit to in various scripting languages so I'm not unfamiliar with the syntax. While my end goal is to replace all my aquired scripts with my own, sometimes I just like to sit back and build.

So I've got this prim alignment tool, and building a foundation on a slope. What I've noticed with this tool is, anytime I align prims which have their center point below grade, this tool will lift the aligned prim on its Z axis out of the ground. I questioned the group on this and was told this is the fault of SL and not of the tool.

Does llSetPos really not allow for buried prims, despite the fact the manual editor does allow for it, or these guys just not want to fix their product?
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
04-14-2007 08:03
That's true, llSetPos won't bury a prim.
nand Nerd
Flexi Fanatic
Join date: 4 Oct 2005
Posts: 427
04-14-2007 08:08
To my knowledge no script can position a root prim's centre below ground level. You may, however, manage to position a linked set so one of the child prims is below ground level (though I have not tested and this is purely speculation). Also instead of a script in the root prim moving such that the child is underground perhaps a script in a child prim might be able to position itself below ground level (again speculation).

It would appear that this limitation was imposed by LL and not some sort of bug and definitely not the fault of the scripted tool you referred to.
_____________________
www.nandnerd.info
http://ordinalmalaprop.com/forum - Ordinal Malaprop's Scripting Forum
Rowan Broek
Craftbrewer
Join date: 9 Feb 2007
Posts: 19
04-14-2007 09:41
Thats interesting... thanks for the info.

So I guess it would be better in the long run to determine the max height(depth) needed for each block rather than simply aligning a bunch of 10x10x10 prims.
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
04-14-2007 19:59
Setting a prim to physical and phantom will allow it to fall thru the ground. Set the bouncy so it floats and maybe use llMoveToTarget.

Some sometimes I think they do things like this so people won't loose things or bug report "My object vanished" like why can't we manually set the alpha to 100?