from lnx.logicnode.lnx_nodes import * class RaycastObjectNode(LnxLogicTreeNode): """it takes an object and returns true or false if the object is touched at screen (x, y) and the (x,y, z) position of that touch if returned""" bl_idname = 'LNRaycastObjectNode' bl_label = 'Raycast Object' lnx_section = 'props' lnx_version = 1 def lnx_init(self, context): self.add_input('LnxNodeSocketAction', 'In') self.add_input('LnxNodeSocketObject', 'Object') self.add_input('LnxFloatSocket', 'X') self.add_input('LnxFloatSocket', 'Y') self.add_input('LnxNodeSocketObject', 'Camera') self.add_output('LnxNodeSocketAction', 'Out') self.add_output('LnxNodeSocketAction', 'True') self.add_output('LnxNodeSocketAction', 'False') self.add_output('LnxVectorSocket', 'Location')