Author Topic: Collision listener  (Read 832 times)

Offline david24

  • byte
  • *
  • Posts: 8
    • View Profile
Collision listener
« on: November 12, 2012, 12:04:08 pm »
Hi,
wanted to ask about a case i have about collision listener:
can i make 2 groups of listeners, assign the same objects to them and that the object's modes will be different in these groups?
like:
Group A:
obj a.  (SELF)
obj b.  (OTHER)

group B:
obj b.  (SELF)
obj c.  (OTHER)

and so obj a' will not react to obj c'.
or am i not thinking straight?!  :-[ ..

BTW great new look for site  8) .

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Collision listener
« Reply #1 on: November 12, 2012, 09:31:06 pm »
The modes are based on the objects, not on the listeners. Each object that has a listener assigned to it will get notified either as the source or the target of your collision. With proper choice of adding which listener to which object, you should be able to create a setup which suits your needs (whatever they may be... ;) ).

Offline david24

  • byte
  • *
  • Posts: 8
    • View Profile
Re: Collision listener
« Reply #2 on: November 12, 2012, 10:13:23 pm »
Got it, tnx :)