Jump to content

trivis

Resident
  • Posts

    20
  • Joined

  • Last visited

Reputation

5 Neutral

Recent Profile Visitors

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

  1. super interesting! thank you all, so much appreciated!
  2. Thank you very much for all this insights!!!! This is so very helpful. I also tried the stopping in combination with llScaleByFactor(1.00); that seems to work as good workaround for now. I am sure anymore, but i think i did the stopping with llTargetOmega(ZERO_VECTOR,0.0,1.0); The llScaleByFactor() was kinda accidentally part of my script, in a reset module.
  3. Thank you for this idea. It was my first thought too. Tried it, but also without the effect that i am looking for, unfortunately. And thanks for the knowledge of that the spinning isnt rotating. So, perhaps there isnt a solution. Anyhow, thanks for thinking with me. I really appreciate and value your contribution! Trivis
  4. Hello all, I have a cylinder attached to my body center. It rotates by use of llTargetOmega(). That works all fine. I can increase/decrease the speed or stop the spinning. After some spinning around i like to not only stop the spinning but also want to reset the rotation, that is that the cylinder goes back to the default avatar rotation. When using llSetRot() i am not able to set the rotation back to the original point. Any help around? 🙂 Thanks in advance, Trivis
  5. Does anyone knows how to create a texture for a tetrahedron-object. Is there a template somewhere? I want to create a tetrahedron with a drawing per side of that object. Thanks in advance, Trivis
  6. It works like a charm, @Wulfie Reanimator! Thanks again for your great educational effort :-) Very much appreciated. Kind regards, Triv
  7. Wow that is amazing @Wulfie Reanimator!!!!! You've put so much effort in answering my question. You're a hero! Will program this later today, if you dont mind, have to do some work first :-) T H A N K S
  8. Worked on the problem... it works fine when I use a "point object" which is left or right of a "avatar object". When the avatar object is a real avatar it doesnt work. The script is: default { touch_start(integer total_number) { key id; id = llGetOwner(); // avatar // id = "e9f7952f-2ac4-0cb7-db9d-4f9a61509593"; // object // target avatar vector avPos = llList2Vector(llGetObjectDetails(id,[OBJECT_POS]),0); rotation avRot = llList2Rot(llGetObjectDetails(id,[OBJECT_ROT]),0); // the math vector A = avPos - <0,1,0>*avRot; vector B = avPos + <0,1,0>*avRot; vector C = llGetPos(); vector AB = B - A; vector AC = C - A; float diff = (B.x-A.x)*(C.y-A.y)-(B.y-A.y)*(C.x-A.x); // left or right // diff > 0 left, diff < 0 right, diff == 0 front/back if (diff > 0 ) llOwnerSay("I am on the left"); if (diff < 0 ) llOwnerSay("I am on the right"); } } Is there anyone who is able to pull me out this deep well?
  9. Thanks Wulfie!, The new script isnt a problem, i am not testing and trying in an existing script :-) I will try to calculate and understand what you wrote where the solution is! But... the rotation of the target avatar is also involved, isnt it? Looks to me that this rotation is just the issue Thanks again, Trivis
  10. Still curious how i can decide if I am standing somewhere left or right of an target avatar. Any idea? Is llVecNorm the solution?
  11. Thank you @Mollymews! This will help for efficiently positioning beside the target avatar!
  12. Somehow I thought this would be easy, but I am still struggling with some rotation things (what's new lol). I am building a positioning HUD. This HUD needs to position me an exact distance left or right of a target-avatar. My rotation is not important (as i understood that a HUD cant rotate me after positioning). The id of the target avatar is known by using llSensor. The positioning of the target is, of course important. My question is how can I determine if I am standing somewhere left or right of my target-avatar (I can be standing in front of the or behind it), and after that positioning myself that exact distance left or right of my target? Thanks in advance for your help, Trivis
  13. Wonderful! Thank you Xiija!! This does the job! Still discovering how you did this :-) but many thanks. Kind regards, trivis
  14. At first it seemed not too difficult to tackle the following problem, but in the end I did not manage to do it. Rotations are the story of my (second) life :-) The problem: I have an object consisting of several prims. When someone touches the object i would like to point one of the childprims to the avatar who touched the object. See attached picture. The rotation of (only!) that childprim only need to be done around in its XY-plane, so only a rotation around its Z-axis. Does anyone has a working solution? Thanks in advance for any help.
  15. Thank you all for your response! Highly appriciated. In the most simple version it would be nice to give the gift a 'unique' number of a sequence... That is: the first recipient will get numer 1, the second numer 2, the third nr3 and so on... But it is clear to me that i have to find another way :-) Thanks again! trivis
×
×
  • Create New...