Jump to content

MzPenny

Resident
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

2 Neutral

About MzPenny

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. thank you wolfie! About to go to bed now, but will work with this new info tomorrow 1st thing. FYI: The referred to script is the one that started this thread/tutorial at the top, teaching how to use llRezAtRoot. But like you said, no need, I 'think' I can study yours from a quick glance over to make it work with the floor_distance. We'll see right? *chuckles* Anyway, thank you so much for your reply and explanations with examples (which are always a good thing! lol) . I would not have known to use the minus sign for sure! Wish me luck! Sweet Dreams when they come to you. UPDATE! I did it!!! *does a happy dance* Well, YA'LL did it I just worked on getting it to work for my needs. *chuckles* A HUGE thank you to Innula and Wulfie for teaching this! *Nana hugs to both of you!* Posting it just in case you see something that might cause issues in the future. *chuckles* Showing my paired down notes so I remember this in the future. lol ------------------------------------------------------------------------------------------------------------------------------------------- //got these numbers using forum method for lparm rezatroot but they worked! //sets rotation of rezzed prim (NOT height/z ) rotation relativeRot = <0.51440, 0.48518, -0.48518, -0.51440>; float floor_distance; //global used for determining individual avatar height default { touch_start(integer n) { //calculate for individual avatar size vector size = llGetAgentSize(llGetOwner()); floor_distance = size.z / 2; string Object= llGetInventoryName(INVENTORY_OBJECT,0); rotation myRot = llGetRot(); //position is where it rezzes (left,right,height) vector position = llGetPos() + (<2, 0.0, -floor_distance> * myRot); //rotation is how the prims rotation is set relative to avi & rezzer ? rotation rezRot = relativeRot * myRot; llRezObject(Object, position, ZERO_VECTOR, rezRot, 0); } }
  2. After doing some clean up of tutorial script, to keep just what I needed in order to understand all this newness without wading through other things... and it still worked so I didn't' break it. lol I went to reading and rereading this forum and making LOTS of notes from this forum .. smh. As well as reading Wulfies comment a few times to wrap my brain around that. Then, I assumed that... to make my rezzed object always land at the floor/feet (ground or air) regardless of avi size.. was to To add into state_entry vector size = llGetAgentSize(llGetOwner()); float floor_distance = size.z / 2; Then to use 'floor_distance' as a replacement for the z of my rezzed object in this list from tutorial: list lParams =["name of object",<1.59395, 0.05095, floor_distance>,<0.51440, 0.48518, -0.48518, -0.51440>]; It wasn't really a happy script until I put in a global of ----------- float floor_distance; But after that she compiled and worked... BUT... well... Good news, I didn't break anything.. Bad news.. it's rezzing like it's the center of the avatar thus not doing the math. What am I missing? NOTE: my bounding box is very thin, so I assume it's not the objects center that's the problem? Thanks for any help.
  3. Thanks Wulfie, after grabbing some food and resting my eyes from all the previous reading *chuckles* I'm going to attempt to augment the tutorial script with your suggestions (using llGet Pos and llRezObject ) --- thank you so much for a direction to go in/try
  4. Thank you so much for this tutorial, I was at a total loss of this type of use for scripts and this was the closest I found to understand them for an item I'm making for a friend. As I was reading some other threads on this subject I realized that I in fact needed to calculate avatar size first (kids and grownups might want to use this in future) . But I'm unsure how to use what I learned here... with the (suggested from another forum here) "size of avi - z of target rez position". Assuming from further searches I would need llGetAgentSize? My project is a hand worn item that when clicked rezzes an object in front of the avi at feet level. Using the tutorial it works wonderfully! But when I use a grown up avi, well, of course it is hovering up a bit. I thought about just making a kid version, female height version and male height version. But, would love to learn how to use the avi size in your rezzer for future products and well, just to have that knowledge. Anyway, if you would be so kind, or rather have the time, to show how to do that within your script it would be greatly appreciated and I would gladly pay you for your time if needed. I'm not posting the script because it's already here *chuckles* I haven't changed a thing other than the lParams. Thanks in advance for any help.
×
×
  • Create New...