armory/blender/arm/logicnode/transform/LN_vector_to_object_orientation.py
2021-07-25 16:47:32 +02:00

20 lines
672 B
Python

from arm.logicnode.arm_nodes import *
class VectorToObjectOrientationNode(ArmLogicTreeNode):
"""Transform world coordinates into object oriented coordinates (in other words: apply object rotation to it).
@seeNode World Vector to Object Space
@seeNode Get World Orientation
@seeNode Vector From Transform
"""
bl_idname = 'LNVectorToObjectOrientationNode'
bl_label = 'Vector to Object Orientation'
arm_section = 'location'
arm_version = 1
def arm_init(self, context):
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('ArmVectorSocket', 'World')
self.add_output('ArmVectorSocket', 'Oriented')