16 lines
		
	
	
		
			494 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			494 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 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')
 |