|
Johan Durant
Registered User
Join date: 7 Aug 2006
Posts: 1,657
|
01-17-2007 18:18
I'm guessing the answer to this is 'no,' but I'm curious if a script can detect when it has moved inside a phantom object. I know how to make a phantom object detect things inside it (a volume detect, natch) but can the detection be done in the other direction?
_____________________
 (Aelin 184,194,22) The Motion Merchant - an animation store specializing in two-person interactions
|
|
Atashi Toshihiko
Frequently Befuddled
Join date: 7 Dec 2006
Posts: 1,423
|
01-17-2007 19:44
Initially I was going to say you can use llGetPrimitiveParams to find out if the object that the script is in, is phantom or not.
Then it occured to me that maybe you mean, if the object the script is in, has passed into or through another object which is phantom. And if that's what you mean, then I don't know of any way to do that.
-Atashi
|
|
Johan Durant
Registered User
Join date: 7 Aug 2006
Posts: 1,657
|
01-18-2007 09:08
From: Atashi Toshihiko Then it occured to me that maybe you mean, if the object the script is in, has passed into or through another object which is phantom. And if that's what you mean, then I don't know of any way to do that. This is what I mean. Like I said, I suspect the answer is no; I certainly can't think of any way either. Anyone else have any ideas?
_____________________
 (Aelin 184,194,22) The Motion Merchant - an animation store specializing in two-person interactions
|
|
Atashi Toshihiko
Frequently Befuddled
Join date: 7 Dec 2006
Posts: 1,423
|
01-18-2007 10:15
Ok here's an idea. It requires both objects to be scripted and in communication with each other.
The phantom object captures the collision event, or volume detect, or however you want to trigger it. If it detects the object that you want to know it's passing through a phantom, the phantom whispers a pre-determined message on a non-zero chat channel. Actually you could even skip the verification step and just have the phantom object whisper the message for all objects that pass into it.
The object that you want to know is passing through a phantom object then has a listener set on that same non-zero channel, and it is watching for that specific message. How accurate you need it to be would determine how much or how little information you pass through the whisper.
It wouldn't be perfect since every phantom you wanted to work with would need to be scripted, instead of just your intended object, but it would at least allow you to make it work in situations where you have full control.
What we'd need really is a sort of reverse-collision event - something that would trigger in the object doing the bumping, instead of the object being bumped.
-Atashi
|