« Return to Thread: Collada InteractiveScene3DEvent

Re: Collada InteractiveScene3DEvent

by AngelicD :: Rate this Message:

Reply to Author | View in Thread

OK, but I need to do it more generically, meaning I will never know the child's name of a dae before hand, cause it can be any random dae that may be loaded, is there a way to do it without getChildByName?

Also i just noticed that for at least a plane, which is what i have events working with, if you set the plane.useOwnContainer = true property sot that you may apply alpha, the events stop working! Any ideas how I can have this so that my plane can have alpha and also have listeners?

Thanks

tmyers wrote:
you need to get a ref of child object in your collada and attach listener here instead of collada container

myDAEObject.getChildByName("object_name", true).addEventListener(InteractiveScene3DEvent...

 « Return to Thread: Collada InteractiveScene3DEvent