Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Collision events question.

Slayd Lemieux
Registered User
Join date: 9 Jul 2005
Posts: 29
09-17-2005 16:33
Howdy all!

Been working on a security system, which works fine now, but with improving it's system usage in mind had a question about it. Keep in mind this was designed to keep out sithackers.

I'm using llCollisionStart on a relatively thin prim which covers the width of the room, then using a timer it repositions itself to two other spots... just to make sure it will collide with anyone flying or sitting above the ground.

Now my question is this... would it work just as well to have a prim that covers the entire room, vertically and horizontally, that way there's no timer event? Would someone sithacking into the middle of the room avoid the collision, or is just being in the middle of the prim enough to trigger it?

Thanks all! Know if I can get rid of the timers it would be a good thing.
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
09-25-2005 19:36
#1. Trying to avoid people who use sit to move in is stupid. We already have enough stupid security systems to deal with, please don't give us another one.

But, assuming that you actually have a decent reason for this... Use a sensor. It's much more reliable than a collision event, and with a bit of math, you could have a square zone that would be out-of-bounds.
Fushichou Mfume
Registered User
Join date: 30 Jul 2005
Posts: 182
09-26-2005 08:54
Didn't I read that in 1.7, LL has blocked the sit-move technique for going through solid walls? This area of endeavor might be moot when 1.7 comes out.
Slayd Lemieux
Registered User
Join date: 9 Jul 2005
Posts: 29
09-26-2005 11:09
I do hope they have found a way to remove sithacking... while I'm sure some people enjoy it, it's a pain in my butt :P

Really though, I've treid to make this system very reasonable. It only works in the exact area that supposed to be pay to enter. So anyone not paying.. well they just get booted home. Seems fair to me.

I would gladly use sensors. but the rooms are not exactly square. They're 20x20 with a 10x5 "balcony".

Does anyone have some good info on when collisons do, and do not work? Seems to me that if someone is sitting, it doesn't quite work. I'm not quite sure of this though, as maybe llTeleportHome may not work on someone sitting? I've read the wiki's and all, done my research, but some things just don't seem to be exactly covered.

Again wondering if I should switch from collison_start, to just plain collison, but wouldn't this create a lot of hits(other objects in the room constantly colliding)?

Anywho, thanks for responding!! This has been sitting around for a while :)
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
09-26-2005 13:48
From: Fushichou Mfume
Didn't I read that in 1.7, LL has blocked the sit-move technique for going through solid walls? This area of endeavor might be moot when 1.7 comes out.
No - it's something they will eventually be able to do with Havock 2.
_____________________
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
09-26-2005 15:01
From: Slayd Lemieux

I would gladly use sensors. but the rooms are not exactly square. They're 20x20 with a 10x5 "balcony".


Just have it check the llDetectedPos against your bounding box...

i.e.
CODE

upperCorner = <30,30,30>; //Every number in this should be larger than smallerCorner
smallerCorner = <20,20,20>;

integer isWithinBox( vector t )
{
vector u = upperCorner;
vector s = smallerCorner;
if (
( t.x <= u.x ) && ( t.x >= s.x ) && //Validate x coordinates
( t.y <= u.y ) && ( t.y >= s.y ) && //Validate y coordinates
( t.z <= u.z ) && ( t.z >= s.z ) ) //Validate z coordinates
return TRUE; //This was inside the bounding box
return FALSE; //It was not within the bounding box
}


From: Slayd Lemieux

Anywho, thanks for responding!! This has been sitting around for a while


Yes, I searched this forum for threads with no responses :D
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
09-26-2005 17:46
nevermind
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-26-2005 21:22
Security in SL is non existent. Like in real life, if someone is persistent they will find away around it. It's amazing what you can see from 3/4 of a sim away. The art/science of spying in SL isn't difficult to master. You can either be paranoid or not let it bother you. Realistically there is no way (short of 'Trusted Computing') to secure SL.

If your selling a product or service that relies on security (short of selling security systems) then you probably won't make money.

If you want privacy A) buy an island B) borrow some space on someones island. Thats the only way you will get it.

Use a sensor to detect people.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey