Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Phantom collision() events

Madox Kobayashi
Madox Labs R&D
Join date: 28 Jun 2003
Posts: 402
07-30-2003 08:45
Back me up - how many people wish phantom objects still recieved collsion() events?

I have a couple things that needed this:
- put a phantom object across a doorway to mark if people are going through there or not. A sensor will pick up people that are nearby and didnt nesseccarily go through.
- a phantom object that worked like a baseball card in a bicycle tire. As the tire spins, the phanton object gets hit and plays a sound effect. Then the sound effects go faster, the faster the tire spins.

I mean, even if you turn off STATUS_GRAB you can still recieve grab offset messages from llDetectedGrab() even though the object isnt moving... :p
_____________________
Madox Kobayashi

Grim Lupis
Dark Wolf
Join date: 11 Jul 2003
Posts: 762
Re: Phantom collision() events
07-30-2003 08:50
From: someone
Originally posted by Madox Kobayashi
Back me up - how many people wish phantom objects still recieved collsion() events?

I have a couple things that needed this:
- put a phantom object across a doorway to mark if people are going through there or not. A sensor will pick up people that are nearby and didnt nesseccarily go through.
- a phantom object that worked like a baseball card in a bicycle tire. As the tire spins, the phanton object gets hit and plays a sound effect. Then the sound effects go faster, the faster the tire spins.


Remember, when two objects occupy the same space, under your suggestion, BOTH objects would get collision notices. I can just ignore these in my phantom object, but soemtimes the whole point of its being phantom is to prevent the OTHER object from detecting it. Your suggestion breaks that.

Perhaps make collision detection a completely separate status code from phantom?
_____________________
Grim

"God only made a few perfect heads, the rest of them he put hair on." -- Unknown
Madox Kobayashi
Madox Labs R&D
Join date: 28 Jun 2003
Posts: 402
07-30-2003 08:57
Good point. I definatly would want the non-phantom object to not get a collision event. Maybe add intersection() events that apply to phantom and/or non-physics objects.
_____________________
Madox Kobayashi

Grim Lupis
Dark Wolf
Join date: 11 Jul 2003
Posts: 762
07-30-2003 09:08
From: someone
Originally posted by Madox Kobayashi
Good point. I definatly would want the non-phantom object to not get a collision event. Maybe add intersection() events that apply to phantom and/or non-physics objects.


Or, possibly, allow phantom objects to receive collision events, but not trigger collision events in other objects. I think that satisfies both sides with the fewest LSL changes.

If you don't want your phantom object to do anything with the collision events, simply don't code them.
_____________________
Grim

"God only made a few perfect heads, the rest of them he put hair on." -- Unknown
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
07-30-2003 10:23
what about an occupies_same_space event or something like that?
_____________________
i've got nothing. ;)