Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
|
09-06-2005 00:52
ok, here's the deal, I'm creating a script that will rez an object, move it into position, resize and rotate it.
Got all that working just great, but having issues with the second one, I need a way to know if it intersects an existing one. (these prims are quite thin (ie. the min) think of it as a flat plane, and I wanna know if it intersects an existing plane once it's in position)
Any ideas? (having tons of issues with llVolumeDetect, half of the time it doesn't find anything, the other half only if something ELSE touches it, rather than what I want it to detect)
(edit, phantom is critical, so I can't lose that)
|
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
|
09-06-2005 02:14
Collisions are only triggered when another physical object moves into your detecting object. If another, non-physical object moves into it with a llSetPos call, this wont trigger anything. Same goes for resizing an object so it overlaps another or rotating into another object with a llSetRot call.
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
|
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
|
09-06-2005 09:07
If you're rezzing all the objects you care about not intersecting with, then presumably you can know before you rez them if it will intersect... depending on how nasty what you're doing is.
If you're trying to avoid intersections with other objects around you, sounds very hard. You could try looking at sensors to detect objects around you, and perhaps avoid building in that direction, but that doesn't sound good enough for whatever it is you're trying to do.
_____________________
-Seifert Surface 2G!tGLf 2nLt9cG
|
Jessica Qin
Wo & Shade, Importers
Join date: 16 Feb 2005
Posts: 161
|
09-06-2005 10:20
From: Rodrick Harrington ok, here's the deal, I'm creating a script that will rez an object, move it into position, resize and rotate it.
Got all that working just great, but having issues with the second one, I need a way to know if it intersects an existing one. (these prims are quite thin (ie. the min) think of it as a flat plane, and I wanna know if it intersects an existing plane once it's in position) I don't know the details of what you're attempting to accomplish, but have you considered an analytical solution? Given that you're rezzing all of the planes in question, could you set up a protocol so that they could query each other, and thus a plane could calculate its intersection vector with any other plane and determine whether or not it there was actually a physical intersection? Jess
|
Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
|
09-06-2005 11:45
From: Jessica Qin I don't know the details of what you're attempting to accomplish, but have you considered an analytical solution? Given that you're rezzing all of the planes in question, could you set up a protocol so that they could query each other, and thus a plane could calculate its intersection vector with any other plane and determine whether or not it there was actually a physical intersection?
Jess yea, I COULD  just means alot more math, and slower execution, I will still need to rez it as a visual clue to the user. Thanks for the tips everyone  Still new at this.
|