Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
t3du authored Dec 20, 2024
1 parent 71f41f3 commit 0fcab15
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from arm.logicnode.arm_nodes import *


class DistanceScreenToWorldSpaceNode(ArmLogicTreeNode):
"""Gets the distance from given screen coordinates to World coordinates.
@input Screen X: screen x position.
@input Screen Y: screen y position.
@input At: World coordinates is a vector position.
@output Distance At: distance result.
"""

bl_idname = 'LNDistanceScreenToWorldSpaceNode'
bl_label = 'Distance Screen to World Space'
arm_section = 'matrix'
arm_version = 1

def arm_init(self, context):
self.add_input('ArmIntSocket', 'Screen X')
self.add_input('ArmIntSocket', 'Screen Y')
self.add_input('ArmVectorSocket', 'At')

self.add_output('ArmFloatSocket', 'Distance at')

0 comments on commit 0fcab15

Please sign in to comment.