rename-node
This commit is contained in:
parent
b942672990
commit
ded3a7353d
|
@ -3,7 +3,7 @@ package armory.logicnode;
|
|||
import iron.object.Object;
|
||||
import iron.math.Vec4;
|
||||
|
||||
class VectorToObjectSpaceNode extends LogicNode {
|
||||
class VectorToObjectOrientationNode extends LogicNode {
|
||||
|
||||
public function new(tree: LogicTree) {
|
||||
super(tree);
|
|
@ -0,0 +1,19 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class VectorToObjectOrientationNode(ArmLogicTreeNode):
|
||||
"""Converts a world oriented vector to a given object oriented vector. Works similarly to 'On Local Axis' checkboxes.
|
||||
|
||||
@seeNode Get World Orientation
|
||||
@seeNode Vector From Transform
|
||||
"""
|
||||
bl_idname = 'LNVectorToObjectOrientationNode'
|
||||
bl_label = 'Vector To Object Orientation'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
super(VectorToObjectOrientationNode, self).init(context)
|
||||
self.add_input('ArmNodeSocketObject', 'Object')
|
||||
self.add_input('NodeSocketVector', 'World')
|
||||
self.add_output('NodeSocketVector', 'Local')
|
||||
|
||||
add_node(VectorToObjectOrientationNode, category=PKG_AS_CATEGORY, section='location')
|
|
@ -1,15 +0,0 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class VectorToObjectSpaceNode(ArmLogicTreeNode):
|
||||
"""Converts a world space vector to the given object space."""
|
||||
bl_idname = 'LNVectorToObjectSpaceNode'
|
||||
bl_label = 'Vector To Object Space'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
super(VectorToObjectSpaceNode, self).init(context)
|
||||
self.add_input('ArmNodeSocketObject', 'Object')
|
||||
self.add_input('NodeSocketVector', 'World Space')
|
||||
self.add_output('NodeSocketVector', 'Object Space')
|
||||
|
||||
add_node(VectorToObjectSpaceNode, category=PKG_AS_CATEGORY, section='location')
|
Loading…
Reference in a new issue