Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Detecting where an object is touched

Zeb Zamboni
Registered User
Join date: 29 May 2004
Posts: 12
07-20-2004 15:59
i'm pretty sure I'm pushing my luck with this one...

Is there anyway to detect on a *single prim* the exact x,y,z coordinates where a touch occurred?

Say I have a cube 1x1x1 and I'm facing its frontward pointing face. If I click on the nearest topleft corner could I return something like -0.5, -0.5, 0.5? Or if I click on the nearest bottomleft corner can I return 0.5, -0.5, 0.5? Or touch it dead center of the closest face and return 0.0, 0.0, 0.5?
Rysidian Rubio
Ruby Red Head
Join date: 14 Jan 2004
Posts: 263
07-20-2004 19:30
No there isn't currently.

It would be good if you could tho, even if it was just seperate for each face, it would be a good start. Or imagemaps would be even better.
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
07-21-2004 11:40
There's no reason why we can't be passed this information. The Havok pick is cast from the user into the world, and the x,y,z point it intersected an object IS returned to the source code. They just need to add an accessor function to LSL.
_____________________
~ Tiger Crossing
~ (Nonsanity)