fix-nodes
This commit is contained in:
parent
97bbf0b9d2
commit
cc481ea15c
|
@ -13,7 +13,7 @@ class GetCursorStateNode extends LogicNode {
|
|||
|
||||
return switch (from) {
|
||||
case 0:
|
||||
mouse.hidden ? mouse.locked ? return true : return false;
|
||||
mouse.hidden && mouse.locked ? return true : return false;
|
||||
case 1:
|
||||
mouse.hidden;
|
||||
case 2:
|
||||
|
|
|
@ -15,6 +15,6 @@ class MapRangeNode extends LogicNode {
|
|||
|
||||
if (value == null || fromMin == null || fromMax == null || toMin == null || toMax == null) return null;
|
||||
|
||||
return (value / fromMax - fromMin) * toMax - toMin;
|
||||
return (value - fromMin) * (toMax - fromMax) / (toMin - fromMin) + fromMax;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue