www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: david24 on November 12, 2012, 12:04:08 pm

Title: Collision listener
Post by: david24 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) .
Title: Re: Collision listener
Post by: EgonOlsen 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... ;) ).
Title: Re: Collision listener
Post by: david24 on November 12, 2012, 10:13:23 pm
Got it, tnx :)