armory/blender/arm/logicnode/physics/LN_set_rb_friction.py

17 lines
542 B
Python
Raw Normal View History

2020-09-05 23:05:35 +02:00
from arm.logicnode.arm_nodes import *
class SetFrictionNode (ArmLogicTreeNode):
2020-10-05 19:55:56 +02:00
"""Sets the friction of the given rigid body."""
2020-09-05 23:05:35 +02:00
bl_idname = 'LNSetFrictionNode'
2020-09-29 18:38:17 +02:00
bl_label = 'Set RB Friction'
2020-09-05 23:05:35 +02:00
bl_icon = 'NONE'
arm_version = 1
2020-09-05 23:05:35 +02:00
def init(self, context):
super(SetFrictionNode, self).init(context)
2020-09-05 23:05:35 +02:00
self.inputs.new('ArmNodeSocketAction', 'In')
2020-10-05 19:55:56 +02:00
self.inputs.new('ArmNodeSocketObject', 'RB')
2020-09-05 23:05:35 +02:00
self.inputs.new('NodeSocketFloat', 'Friction')
2020-11-17 16:01:15 +01:00
2020-09-05 23:05:35 +02:00
self.outputs.new('ArmNodeSocketAction', 'Out')