Phantom Object Collissions
|
Relee Baysklef
Irresistable Squirrel
Join date: 18 Sep 2003
Posts: 360
|
07-25-2004 04:26
Hi-ho there gang. Does anybody know if there is a way to detect collissions with Phantom objects? I was doing some experiments with Volume Detection and I realized that it couldn't detect collissions with phantom objects. I have a vague memory of there being some way to detect collissions with phantom objects, but I can't seem to remember it. Helping would be appreciated. 
_____________________
-- Relee the Squirrel --
|
Chance Small
Linden PITA
Join date: 30 Jul 2003
Posts: 170
|
07-25-2004 05:57
Uncheck the phantom option for the object, then refer to From: someone A.258. llVolumeDetect
llVolumeDetect(integer detect);
When detect = TRUE, this makes the entire link set the script is attached to phantom but if another object interpenetrates it, it will get a collision_start event. When an object stops interpenetrating, a collision_end event is generated. While the other is interpenetrating, collision events are NOT generated. The script must be applied to the root object of the link set to get the collision events. Collision filters work normally.
in the standard lsl guide in which came with the Second Life install.
|
Jack Digeridoo
machinimaniac
Join date: 29 Jul 2003
Posts: 1,170
|
07-25-2004 08:28
I think both objects would have to use llVolumeDetect
I remember phantom objects not working right with llVolumeDetect....
I don't know if that'll work though. Just a guess.
_____________________
If you'll excuse me, it's, it's time to make the world safe for democracy.
|
Relee Baysklef
Irresistable Squirrel
Join date: 18 Sep 2003
Posts: 360
|
07-26-2004 02:56
I think you guys have misunderstood. I already have Volume Detect working, but I want it to detect phantom objects. I thought there was a way to set an object to detect collissions with phantom objects, however I haven't found any reference to it. Maybe I just dreamed about it.  Ahh cest'la'vie. I'll just have to use a sensor after all.
_____________________
-- Relee the Squirrel --
|
Jack Digeridoo
machinimaniac
Join date: 29 Jul 2003
Posts: 1,170
|
07-26-2004 05:37
And I still think you can't do it and need to use llVolumeDetect in both objects. But I still could be wrong. It might not be possible at all.
Make sure Phantom is unchecked in both objects. Using llVolumeDetect makes the objects phantom essentially.
_____________________
If you'll excuse me, it's, it's time to make the world safe for democracy.
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
07-26-2004 10:44
Relee, I think you're misunderstanding the use of phantom  Phantom objects cannot be collided with even if the object has llVolumeDetect enabled. If phantom objects triggered collision events, the behavior would violate the very definition of a phantom object. I have reason to believe that phantom objects are completely excluded from the collision detection process. llVolumeDetect makes the prim a "special" type of "phantom" that is not excluded from the process. That's what Jack is trying to say, I think. If it is possible, can you make the phantom objects llVolumeDetect instead? ==Chris
|
Relee Baysklef
Irresistable Squirrel
Join date: 18 Sep 2003
Posts: 360
|
07-26-2004 15:35
Ahh, no no, you guys don't understand what I'm doing. I was working on a scanning device to tally all of the objects on a plot. I didn't want to use the Sensor functions because they have a maximum of 16 objects per sensor event. I had the idea that if I used a physics enabled 4x4x0.01 dimension prim I could move it through the space with Volume Detect on, and detect the objects it passes through. However, phantom objects don't normally make a collision. The problem I was trying to solve was to make my prim detect collissions with phantom objects. Of course, in that instance, I would have no control over the object being detected. Since the whole purpose of this scanner is to make a tally of unwanted objects on a person's plot, and those objects are likely to be phantom and closely packed, I was hoping it would be possible. It seems that it's not possible after all. Finally, for the record, regular phantom objects will make collisions with the ground, and volumedetect enabled phantom objects won't collide with anything, including the ground. I found that out the hard way, playing catch with my scanning field during early experiments. 
_____________________
-- Relee the Squirrel --
|
Higbee Protagonist
Yggdrai Ranger
Join date: 7 Aug 2003
Posts: 266
|
07-27-2004 10:36
Just to clarify... VolumeDetect objects CAN only be used with OTHER VolumeDetect objects. You are correct Jack. Additionally PHANTOM objects CANNOT be collision detected. Period. I unfortunately went through a month long spree of trying to discover work arounds for these very issues, somewhat along your lines Relee, but was unable to come up with a single solution. No holes in this one 
_____________________
Higbee Protagonist ************************ "Even an immobile stone will respond to you If you approach with love, call out, and talk to it." - Shinagawa Tetsuzan
http://www.redprometheus.com
|