-
Notifications
You must be signed in to change notification settings - Fork 315
/
LN_get_rb_data.py
26 lines (23 loc) · 1.14 KB
/
LN_get_rb_data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from arm.logicnode.arm_nodes import *
class GetRigidBodyDataNode(ArmLogicTreeNode):
"""Returns the data of the given rigid body."""
bl_idname = 'LNGetRigidBodyDataNode'
bl_label = 'Get RB Data'
arm_section = 'props'
arm_version = 1
def arm_init(self, context):
self.inputs.new('ArmNodeSocketObject', 'Object')
self.outputs.new('ArmBoolSocket', 'Is RB')
self.outputs.new('ArmIntSocket', 'Collision Group')
self.outputs.new('ArmIntSocket', 'Collision Mask')
self.outputs.new('ArmBoolSocket', 'Is Animated')
self.outputs.new('ArmBoolSocket', 'Is Static')
self.outputs.new('ArmFloatSocket', 'Angular Damping')
self.outputs.new('ArmFloatSocket', 'Linear Damping')
self.outputs.new('ArmFloatSocket', 'Friction')
self.outputs.new('ArmFloatSocket', 'Mass')
#self.outputs.new('ArmStringSocket', 'Collision Shape')
#self.outputs.new('ArmIntSocket', 'Activation State')
#self.outputs.new('ArmBoolSocket', 'Is Gravity Enabled')
#self.outputs.new(ArmVectorSocket', Angular Factor')
#self.outputs.new('ArmVectorSocket', Linear Factor')