Set Friction node .py
This commit is contained in:
parent
b1e09b6dc4
commit
6e824580b9
18
blender/arm/logicnode/physics_set_friction.py
Normal file
18
blender/arm/logicnode/physics_set_friction.py
Normal 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')
|
Loading…
Reference in a new issue