Set Friction node .py

This commit is contained in:
knowledgenude 2020-09-05 18:05:35 -03:00 committed by GitHub
parent b1e09b6dc4
commit 6e824580b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,18 @@
import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class SetFrictionNode (Node, ArmLogicTreeNode):
'''Set Friction Node'''
bl_idname = 'LNSetFrictionNode'
bl_label = 'Set Friction'
bl_icon = 'NONE'
def init(self, context):
self.inputs.new('ArmNodeSocketAction', 'In')
self.inputs.new('ArmNodeSocketObject', 'Object')
self.inputs.new('NodeSocketFloat', 'Friction')
self.outputs.new('ArmNodeSocketAction', 'Out')
add_node(SetFrictionNode, category='Physics')