Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Getting two non-phsyical objects to detect each other

Natallie Loire
Registered User
Join date: 31 Mar 2008
Posts: 4
04-10-2008 22:42
Is it possible to have two objects, that are non-physical objects, i.e. don't have that option checked or are not set to a physics object, and still be able to tell when they intersect?

I really need a script that can detect a 'collision' but I can't make them physics objects because I need to also be able to call the llSetPos functions on them.


Any help would be awesome!

Thanks!
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
04-10-2008 23:38
I would use llSensor() and sensor() to find the distance between the two and llGetBoundingBox() for both objects. Knowing these values it should be possible to determine if they collide
_____________________
From Studio Dora
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
04-11-2008 02:16
Oh, and llSetPos does work with physical objects, btw.
Natallie Loire
Registered User
Join date: 31 Mar 2008
Posts: 4
04-12-2008 09:14
From: Dylan Rickenbacker
Oh, and llSetPos does work with physical objects, btw.



Really? I could never get it to work :(