Hitdetection problem
#2
I suspect that something is wrong with registering the EventSources to EventManager3D (you have not posted the code that does that).

With MultiModelEventSource3D it is very easy to change the selected objects. All you need to do is:

- first add object names to _eventManager.NamedObjects (you already do that).

- than register the MultiModelEventSource3D with EventManager3D.RegisterEventSource3D method

After that you only need to change the TargetModelNames on MultiModelEventSource3D and set it to the name of the selected object (you can also specify more objects with separating the names with ,; or space). After that the events will be triggered only on the objects whose names are specified in TargetModelNames.
Andrej Benedik
  


Messages In This Thread
Hitdetection problem - by daageu - 12-12-2013, 01:00 PM
RE: Hitdetection problem - by abenedik - 12-12-2013, 01:39 PM
RE: Hitdetection problem - by daageu - 12-12-2013, 01:59 PM
RE: Hitdetection problem - by abenedik - 12-12-2013, 02:26 PM
RE: Hitdetection problem - by daageu - 12-12-2013, 02:37 PM
RE: Hitdetection problem - by abenedik - 12-12-2013, 02:46 PM
RE: Hitdetection problem - by daageu - 12-12-2013, 04:04 PM
RE: Hitdetection problem - by abenedik - 12-12-2013, 04:12 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)