Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9

This commit is contained in:
2026-09-04 10:46:13 -07:00
parent c915312901
commit 0460b9d587
482 changed files with 27797 additions and 3226 deletions

View File

@ -2,16 +2,35 @@ from lnx.logicnode.lnx_nodes import *
class SetVelocityNode(LnxLogicTreeNode):
"""Sets the velocity of the given rigid body."""
bl_idname = 'LNSetVelocityNode'
bl_idname = 'LNSetRigidBodyVelocityNode'
bl_label = 'Set RB Velocity'
lnx_section = 'props'
lnx_version = 1
def update_sockets(self, context):
self.inputs[2].hide = self.property0 == 'Angular'
self.inputs[3].hide = self.property0 == 'Angular'
self.inputs[4].hide = self.property0 == 'Linear'
self.inputs[5].hide = self.property0 == 'Linear'
property0: HaxeEnumProperty(
'property0',
items=[('Both', 'Both', 'Set both velocities'),
('Linear', 'Linear', 'Set only linear velocity'),
('Angular', 'Angular', 'Set only angular velocity')],
name='Velocity',
default='Both',
update=update_sockets
)
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'RB')
self.add_input('LnxVectorSocket', 'Linear')
self.add_input('LnxVectorSocket', 'Linear Factor', default_value=[1.0, 1.0, 1.0])
self.add_input('LnxBoolSocket', 'Linear On Local Axis')
self.add_input('LnxVectorSocket', 'Angular')
self.add_input('LnxVectorSocket', 'Angular Factor', default_value=[1.0, 1.0, 1.0])
self.add_input('LnxBoolSocket', 'Angular On Local Axis')
self.add_output('LnxNodeSocketAction', 'Out')
def draw_buttons(self, context, layout):
layout.prop(self, 'property0')