2020-09-05 23:05:35 +02:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-09 21:11:49 +02:00
|
|
|
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'
|
2020-09-13 11:27:58 +02:00
|
|
|
arm_version = 1
|
2020-09-05 23:05:35 +02:00
|
|
|
|
|
|
|
def init(self, context):
|
2020-09-13 11:27:58 +02:00
|
|
|
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')
|