forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
14
leenkx/blender/lnx/logicnode/physics/LN_has_contact.py
Normal file
14
leenkx/blender/lnx/logicnode/physics/LN_has_contact.py
Normal file
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class HasContactNode(LnxLogicTreeNode):
|
||||
"""Returns whether the given rigid body has contact with another given rigid body."""
|
||||
bl_idname = 'LNHasContactNode'
|
||||
bl_label = 'Has Contact'
|
||||
lnx_section = 'contact'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketObject', 'RB 1')
|
||||
self.add_input('LnxNodeSocketObject', 'RB 2')
|
||||
|
||||
self.add_output('LnxBoolSocket', 'Has Contact')
|
Reference in New Issue
Block a user