Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rezzing at ground level

Snow Cone
Registered User
Join date: 6 Jun 2006
Posts: 15
10-02-2007 16:19
Hi all,
This is the situation. I have an attachment that I wear which raises me off the ground. One of the child prims of the attached link set is responsible for rezzing another object at the same level as the bottom of my attachment.
The combination of avatar height differences, the amount the animation lifts said avatar off the ground, the position of the child prim and venus passing through the house of saggitarius have left me completely unable to discern the Z coordinate of the bottom of my attachment.

I've tried things like using bounding boxes, calculating avatar height and trying to normalise by that variable, using the (semi) known hip height difference of the animation etc.
But I'm stumped.

Any ideas?

Many thanks,

Snow.
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
10-02-2007 18:58
The only advice I can give you is to rethink what you are trying to accomplish. All because you want it to rezz at the bottom of the attachment, does it have to? Can it be already rezzed and attached, and scale the prim to the desired size when needed?
Snow Cone
Registered User
Join date: 6 Jun 2006
Posts: 15
Cheers for the reply
10-05-2007 15:14
But it *is* sort of important that the object rezzes from the attachment and does so at a known and predictable location, regardless of avatar height.

I suppose my problem is that up until now, I've never had llGetPos() return anything but correct values. Thing is, as soon as you wear something that changes your position in the world, llGetPos() returns where the prim *would've* been, had you not been playing any anims.

It's a bit irritating and I'm perfectly willing to accept that there's no solution to the problem and I'll have to think up an aceptable hack that at least gets the job half done (guessing a good value based on some ratio of avatar height : average avatar height.

I just wondered if anyone could see something blindingly obvious that I couldn't.

Cheers,

Snow