Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Detecting which face of a prim was clicked

Feynt Mistral
Registered User
Join date: 24 Sep 2005
Posts: 551
05-11-2006 19:53
I was just wondering if it was possible. I remember seeing a thread about this sort of thing before, but I looked 10 pages back and tried searching and couldn't find anything on this. I also could have sworn I had a script that did this but I can't seem to find it.

The basic idea is I'm trying to make a wall that allows you to choose which face will change textures when you click on it. Click the side of the wall and that face you touch will rotate through a series of textures with each click.

I'm doubting it's possible, but it's worth asking just in case.
_____________________
I dream of a better tomorrow in SL!
You should too. Visit, vote, voice opinions.
Support CSG! Tell LL how much it would mean to subtract one prim from another!
Prim Animation! Stop by and say something about it, show your support!
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
05-11-2006 23:45
No, but you could determine which face was facing the avatar with llDetectedPos() and a little math.
Adriana Caligari
Registered User
Join date: 21 Apr 2005
Posts: 458
05-12-2006 01:03
Another - but highly prim inefficient way - would be to construct the wall from separate prims and link them together.

Then just change which linked prim is touched.

(The detect where the av method works - unless the av is messing with their camera when they do the touch - so they could be facing the front face and actually be touching the back face - or simpler the front could be closest, but they could be touching the visible side )

( This, however, would be an excellent feature suggestion - the ability to get the face, and coordinate where on the face that were touched )