LNXSDK/leenkx/blender/lnx/logicnode/physics/LN_set_rb_friction.py

16 lines
494 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class SetFrictionNode (LnxLogicTreeNode):
"""Sets the friction of the given rigid body."""
bl_idname = 'LNSetFrictionNode'
bl_label = 'Set RB Friction'
bl_icon = 'NONE'
lnx_version = 1
def lnx_init(self, context):
self.inputs.new('LnxNodeSocketAction', 'In')
self.inputs.new('LnxNodeSocketObject', 'RB')
self.inputs.new('LnxFloatSocket', 'Friction')
self.outputs.new('LnxNodeSocketAction', 'Out')