forked from LeenkxTeam/LNXSDK
15 lines
551 B
Python
15 lines
551 B
Python
|
|
from lnx.logicnode.lnx_nodes import *
|
||
|
|
|
||
|
|
class SetRigidBodyDynamicsNode(LnxLogicTreeNode):
|
||
|
|
bl_idname = 'LNSetRigidBodyDynamicsNode'
|
||
|
|
bl_label = 'Set RB Dynamics'
|
||
|
|
lnx_section = 'props'
|
||
|
|
lnx_version = 1
|
||
|
|
|
||
|
|
def lnx_init(self, context):
|
||
|
|
self.add_input('LnxNodeSocketAction', 'In')
|
||
|
|
self.add_input('LnxNodeSocketObject', 'Object')
|
||
|
|
self.add_input('LnxBoolSocket', 'Is Static', default_value=False)
|
||
|
|
self.add_input('LnxFloatSocket', 'Mass', default_value=1.0)
|
||
|
|
self.add_output('LnxNodeSocketAction', 'Out')
|