armory/blender/arm/logicnode/physics_get_first_contact.py

17 lines
483 B
Python
Raw Normal View History

2017-04-04 23:11:31 +02:00
import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class GetFirstContactNode(Node, ArmLogicTreeNode):
'''Get first contact node'''
bl_idname = 'LNGetFirstContactNode'
bl_label = 'Get First Contact'
bl_icon = 'GAME'
def init(self, context):
self.inputs.new('NodeSocketShader', "Object")
self.outputs.new('NodeSocketShader', "Object")
add_node(GetFirstContactNode, category='Physics')