forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
26
leenkx/blender/lnx/logicnode/physics/LN_get_rb_data.py
Normal file
26
leenkx/blender/lnx/logicnode/physics/LN_get_rb_data.py
Normal file
@ -0,0 +1,26 @@
|
||||
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')
|
Reference in New Issue
Block a user