Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

detecting where object touched

Danielz Shackle
Registered User
Join date: 30 Apr 2006
Posts: 100
05-29-2006 19:03
one thing i havent seen in wiki or forumns is if its even possible to detect where an object was touched. But not what side, where at on that side, if i can seperate it into say a 2x2 grid and have 4 points to touch. Ir am i stuck using 4 objects that look like one. Can anyone tell me if this is possible, and if it is where in wiki can i find code or examples, thanks!
Kermitt Quirk
Registered User
Join date: 4 Sep 2004
Posts: 267
05-29-2006 20:03
The quick answer is, nope, it isn't possible. Plenty of people have screamed for this one as it would cut down the number of prims needed for HUD interfaces and such quite dramatically. If you really want to pursue it I'd suggest having a look in the Feature Voting. I'm sure there's a proposal or two for that kind of thing somewhere.

(Edit) I just realised I have votes on one of those proposals. This one is just aiming at being able to detect the side that was touched, not where on that side.
http://secondlife.com/vote/index.php?get_id=918
Elvawin Rainbow
Registered User
Join date: 30 Aug 2005
Posts: 172
05-29-2006 20:05
Kermie is correct you just have to bite the bullet and use more prims
_____________________
"Off with their Heads"
Patch Lamington
Blumfield SLuburban
Join date: 2 Nov 2005
Posts: 188
05-30-2006 08:14
It is possible - but only in mouselook.

38717
_____________________
Blumfield - a regular everyday kind of 'burb in an irregular world.
This notice brought to you by the Blumfield Visitors and Residents Bureau.
Draco18s Majestic
Registered User
Join date: 19 Sep 2005
Posts: 2,744
05-30-2006 09:55
I see what that script does, if figures out where the avatar is and the rotation of the object to guess which side was clicked. Only works in mouse-look because then they are garundeed to be looking at the object in only one direction.