forked from LeenkxTeam/LNXSDK
made default resolution adaptive sensiticity because makes more sense, removed other things since no difference and dunno
This commit is contained in:
@ -5,8 +5,7 @@ class MouseLookNode(LnxLogicTreeNode):
|
||||
"""Controls object rotation based on mouse movement for FPS-style camera control.
|
||||
|
||||
Features:
|
||||
- Sub-pixel interpolation (always enabled) for optimal precision and smooth low-sensitivity movement
|
||||
- Resolution-adaptive scaling for consistent feel across different screen resolutions
|
||||
- Built-in resolution-adaptive scaling for consistent feel across different screen resolutions
|
||||
"""
|
||||
bl_idname = 'LNMouseLookNode'
|
||||
bl_label = 'Mouse Look'
|
||||
@ -55,12 +54,12 @@ class MouseLookNode(LnxLogicTreeNode):
|
||||
name='Cap Up / Down',
|
||||
description='Limit vertical rotation',
|
||||
default=True)
|
||||
|
||||
# Strategy toggles
|
||||
property6: HaxeBoolProperty(
|
||||
'property6',
|
||||
name='Resolution Adaptive',
|
||||
description='Scale sensitivity based on screen resolution',
|
||||
|
||||
# Head rotation space toggle
|
||||
property7: HaxeBoolProperty(
|
||||
'property7',
|
||||
name='Head Local Space',
|
||||
description='Enable it if the Head is child of the Body to avoid weird rotation',
|
||||
default=False)
|
||||
|
||||
|
||||
@ -72,7 +71,7 @@ class MouseLookNode(LnxLogicTreeNode):
|
||||
self.add_input('LnxNodeSocketObject', 'Body')
|
||||
self.add_input('LnxNodeSocketObject', 'Head')
|
||||
self.add_input('LnxFloatSocket', 'Sensitivity', default_value=0.5)
|
||||
self.add_input('LnxFloatSocket', 'Smoothing', default_value=0.0)
|
||||
self.add_input('LnxFactorSocket', 'Smoothing', default_value=0.0)
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
|
||||
@ -92,10 +91,6 @@ class MouseLookNode(LnxLogicTreeNode):
|
||||
col.prop(self, 'property4', text='Cap Left / Right')
|
||||
col.prop(self, 'property5', text='Cap Up / Down')
|
||||
|
||||
# Separator
|
||||
layout.separator()
|
||||
|
||||
# Enhancement strategies section
|
||||
# Head behavior section
|
||||
col = layout.column(align=True)
|
||||
col.label(text="Enhancement Strategies:")
|
||||
col.prop(self, 'property6', text='Resolution Adaptive')
|
||||
col.prop(self, 'property7', text='Head Local Space')
|
Reference in New Issue
Block a user