Jump to content

Anton Catesby

Resident
  • Posts

    22
  • Joined

  • Last visited

Everything posted by Anton Catesby

  1. Thanks, @Rolig Loon and @Quistess Alpha Unfortunately, while this solution works most of the time, I'm getting false positives when the hoop is right up against the post -- for example: This is the script I'm using (the radius is half the diameter, as measured with a prim): float RADIUS = 0.222; default { touch_end(integer num_detected) { llSensor("My Post","",PASSIVE,5.0,PI); } sensor(integer n) { vector posPost = llDetectedPos(0); vector posSelf = llGetPos(); posPost.z = posSelf.z; vector vDiff = posPost-posSelf; // if the post is more than radius away, it is definitely too far. if(llVecMag(vDiff)>RADIUS) { llOwnerSay("Off (too far)"); return; } rotation rotSelf = llGetRot(); vector vNorm = llRot2Fwd(rotSelf); // z-axis. // a prim-torus would use the x-axis: llRot2Fwd(rotSelf); vector vLeft = vNorm%vDiff; // same up to this line: vector vTarget = vLeft%vNorm; // vector pointing at the post, lying on the plane normal to the ring's z-axis. vTarget=llVecNorm(vTarget)*RADIUS; // set the length of the vector to the radius of the ring. vTarget.z=0; vDiff.z=0; llOwnerSay("vTarget: "+(string)vTarget+", vDiff: "+(string)vDiff); llOwnerSay("vTarget*vTarget is "+(string)(vTarget*vTarget)); llOwnerSay("vDiff*vDiff is "+(string)(vDiff*vDiff)); if(vTarget*vTarget > vDiff*vDiff) // vector*itself == its magnitude squared. { llOwnerSay("on"); }else { llOwnerSay("off"); } } } and this is what it's saying: vTarget: <-0.03092, 0.14075, 0.00000>, vDiff: <-0.11945, 0.03651, 0.00000> [16:45] Object: vTarget*vTarget is 0.020767 [16:45] Object: vDiff*vDiff is 0.015601 [16:45] Object: on I'd be very grateful for any suggestions.
  2. How do I calculate this, please? If the hoop is lying flat on the ground it's easy enough -- just calculate if the distance between the hoop's centre and that of the post at the ring's z coordinate is < the ring's radius -- but what if it's at an angle? If the hoop is leaning against the post, the distance will (generally?) be less than the radius, but obviously it's not landed over the post. I've tried translating the hoop's position by every permutation of rotations I can think of, but nothing seems to work, and I'm having difficulty conceptualising what I'm trying to calculate. I've also tried calling llCastRay repeatedly. It seems to work, but that's a horrible way to do it: rotation r1; rotation rStart = ZERO_ROTATION; default { state_entry() { r1 = llEuler2Rot(<1.0,0.0,0.0>*DEG_TO_RAD); } touch_end(integer num_detected) { llResetTime(); integer iCounter =0; integer iMax = 360; vector vSize = llGetScale(); vector vPos = llGetPos(); rotation rRot = llGetRot(); list lTemp; vector v = <0.0,(vSize.y*0.94)*0.5,0.0>; do{ lTemp = llCastRay(vPos+v*rStart*rRot,vPos,[RC_MAX_HITS,2]); if(llList2Integer(lTemp, -1)>0){ lTemp = llDeleteSubList(lTemp,-1,-1); list lKeys = llList2ListStrided(lTemp,0,-1,2); integer max = -llGetListLength(lKeys); do{ key k = llList2Key(lKeys,max); if(k!=llGetKey()){ llOwnerSay(llKey2Name(k)); } } while(++max); } rStart*=r1; } while(++iCounter<iMax); llOwnerSay((string)llGetTime()); } } Can anyone help me, please?
  3. No, but before I retired I worked in the the criminal justice system, and am very familiar with the distinction between what someone remembers happening and what actually did happen, since I've heard so many completely independent, honest and truthful witnesses describe, in detail and on oath, events that didn't actually take place. Similarly, I've learned by hard experience that, when I'm being told something at all important, or telling it to someone else, that it's prudent to ensure that both of us properly understand what the other one is saying, and to make a note of it, so I'm sure I remember the details of what we've agreed, because I've all too often found myself in one of those situations where what one of us thinks we said isn't what the other one thinks he or she heard. Memory alone isn't reliable.
  4. Forgive me for saying so, but your recollection, unaided by a contemporaneous note, of what you think you remember one of the Moles saying at some point in the past, though you can't actually remember who that Mole might have been, may not be quite as an authoritative source of factual information about LL's policies as you seem to think it is. Was anyone with you at the time who might remember the incident, or have you asked Patch or any other Lindens or Moles whether this is, in fact, LDPW's official attitude?
  5. I don't know, but I'd suspect that most land-based themes would prove far more generally attractive -- if you think of the number of people who might be interested in living in -- say -- something based on styles reminiscent of, for example, a Tuscan or Provençal or Moroccan or Greek or Japanese village, I suspect that would be far greater than the number of people other than merfolk interested in underwater living.
  6. It's a lovely idea but I wonder how much LL will want to to implement it, at least in the immediate future. How large is the SL mer-community? What's proposed is, in effect, a whole new theme, like houseboats, or campers, or Victorian, which will be of huge interest to mer-folk but of limited interest (though probably not of no interest) to most other people. Depending on the size of the mer-community, LL might wonder if it's an efficient use of the Moles' time to have them create content and to build new regions for a specialist theme primarily aimed at one particular rp community when there's however many tens of thousands of Premium members who aren't merfolk still needing homes built. By the same token, what effect would this have on existing residential mer communities in SL (assuming there are some)? Their members with premium accounts would have a very good reason to abandon their existing residences for Bellisseria, which might well leave whoever owns the region where the merfolk presently live unable to continue to support it, and thus break up the old community completely.
  7. Ask your friend to contact Paleo Linden, which is the Linden account that operates PaleoQuest, explaining what happened and ask for the matter to be investigated.
  8. All I can suggest is that you contact Paelo Linden, which is the LL account responsible for PaleoQuest, explain the situation, and ask to be unbanned.
  9. The dialog message says "You have ignored three warnings," though. So there's two accidental sits, but shouldn't there have been a third warning before it banned you, or did the Security miscount?
  10. The dialog message refers to three previous warnings. What had happened previously to cause those?
  11. I had difficulty finding a decent shape -- I ended up making my own -- but I can recommend Lorac Farella's skins at Pulse. Many of her skins, both male and female, are available in different ages, so you can choose not only the look you want but how old you want to be.
  12. Rather than rezzing and derezzing things, I would use llSetLinkPrimitiveParamsFast to change the tail prims from one tail to another.
  13. You would need to consult a patent lawyer in the appropriate jurisdiction, of course, but I am pretty certain you can't anywhere patent (or copyright) ideas, only their implementation.
  14. Thank you for the swift reply, both. I shall certainly check your recommendations. Just to clarify, my avatar isn't ancient. He's a distinguished gent in his late 50s or early 60s, so he doesn't want to be bouncing around, but he's not doddery, either.
  15. Has anyone any suggestions for a good AO for an older male avatar? Price isn't really an issue, but I don't want anything particularly elaborate.
  16. You might try playing with the new llSetKeyframedMotion. That's smoother than llSetPos and other non-physics motion (and a lot kinder on the sim).
×
×
  • Create New...