armory/blender/arm/logicnode/physics/LN_remove_rb.py

19 lines
597 B
Python
Raw Normal View History

2020-09-06 15:50:03 +02:00
import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class RemovePhysicsNode (ArmLogicTreeNode):
2020-10-05 19:55:56 +02:00
"""Removes the rigid body from the given object."""
2020-09-06 15:50:03 +02:00
bl_idname = 'LNRemovePhysicsNode'
2020-09-29 18:38:17 +02:00
bl_label = 'Remove RB'
arm_version = 1
2020-09-06 15:50:03 +02:00
def init(self, context):
super(RemovePhysicsNode, self).init(context)
2020-09-06 15:50:03 +02:00
self.inputs.new('ArmNodeSocketAction', 'In')
2020-10-05 19:55:56 +02:00
self.inputs.new('ArmNodeSocketObject', 'RB')
2020-09-06 15:50:03 +02:00
self.outputs.new('ArmNodeSocketAction', 'Out')
add_node(RemovePhysicsNode, category=PKG_AS_CATEGORY)