forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
16
leenkx/blender/lnx/logicnode/physics/LN_apply_torque.py
Normal file
16
leenkx/blender/lnx/logicnode/physics/LN_apply_torque.py
Normal file
@ -0,0 +1,16 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class ApplyTorqueNode(LnxLogicTreeNode):
|
||||
"""Applies torque to the given rigid body."""
|
||||
bl_idname = 'LNApplyTorqueNode'
|
||||
bl_label = 'Apply Torque'
|
||||
lnx_section = 'force'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxNodeSocketObject', 'RB')
|
||||
self.add_input('LnxVectorSocket', 'Torque')
|
||||
self.add_input('LnxBoolSocket', 'On Local Axis')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
Reference in New Issue
Block a user