27 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								from lnx.logicnode.lnx_nodes import *
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class GetRigidBodyDataNode(LnxLogicTreeNode):
							 | 
						||
| 
								 | 
							
								    """Returns the data of the given rigid body."""
							 | 
						||
| 
								 | 
							
								    bl_idname = 'LNGetRigidBodyDataNode'
							 | 
						||
| 
								 | 
							
								    bl_label = 'Get RB Data'
							 | 
						||
| 
								 | 
							
								    lnx_section = 'props'
							 | 
						||
| 
								 | 
							
								    lnx_version = 1
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    def lnx_init(self, context):
							 | 
						||
| 
								 | 
							
								        self.inputs.new('LnxNodeSocketObject', 'Object')
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        self.outputs.new('LnxBoolSocket', 'Is RB')
							 | 
						||
| 
								 | 
							
								        self.outputs.new('LnxIntSocket', 'Collision Group')
							 | 
						||
| 
								 | 
							
								        self.outputs.new('LnxIntSocket', 'Collision Mask')
							 | 
						||
| 
								 | 
							
								        self.outputs.new('LnxBoolSocket', 'Is Animated')
							 | 
						||
| 
								 | 
							
								        self.outputs.new('LnxBoolSocket', 'Is Static')
							 | 
						||
| 
								 | 
							
								        self.outputs.new('LnxFloatSocket', 'Angular Damping')
							 | 
						||
| 
								 | 
							
								        self.outputs.new('LnxFloatSocket', 'Linear Damping')
							 | 
						||
| 
								 | 
							
								        self.outputs.new('LnxFloatSocket', 'Friction')
							 | 
						||
| 
								 | 
							
								        self.outputs.new('LnxFloatSocket', 'Mass')
							 | 
						||
| 
								 | 
							
								        #self.outputs.new('LnxStringSocket', 'Collision Shape')
							 | 
						||
| 
								 | 
							
								        #self.outputs.new('LnxIntSocket', 'Activation State')
							 | 
						||
| 
								 | 
							
								        #self.outputs.new('LnxBoolSocket', 'Is Gravity Enabled')
							 | 
						||
| 
								 | 
							
								        #self.outputs.new(LnxVectorSocket', Angular Factor')
							 | 
						||
| 
								 | 
							
								        #self.outputs.new('LnxVectorSocket', Linear Factor')
							 |