@@ -450,12 +450,12 @@ public override Element Optimize()
450450
451451 if ( ParameterValues [ 0 ] is V_Number a && ParameterValues [ 1 ] is V_Number b )
452452 {
453- double h = a . Value ;
454- double v = b . Value ;
453+ double h = a . Value * ( Math . PI / 180 ) ;
454+ double v = b . Value * ( Math . PI / 180 ) ;
455455
456- double x = Math . Sin ( h * ( Math . PI / 180 ) ) ;
457- double y = - Math . Sin ( v * ( Math . PI / 180 ) ) ;
458- double z = Math . Cos ( h * ( Math . PI / 180 ) ) ;
456+ double x = Math . Sin ( h ) * Math . Cos ( v ) ;
457+ double y = - Math . Sin ( v ) ;
458+ double z = Math . Cos ( h ) * Math . Cos ( v ) ;
459459
460460 if ( y == - 0 )
461461 y = 0 ;
@@ -566,6 +566,7 @@ public override object GetConstant() =>
566566 }
567567
568568 [ ElementData ( "Empty Array" , ValueType . Any ) ]
569+ [ HideElement ]
569570 public class V_EmptyArray : Element { }
570571
571572 [ ElementData ( "Entity Exists" , ValueType . Boolean ) ]
@@ -601,6 +602,7 @@ public class V_EyePosition : Element { }
601602 public class V_FacingDirectionOf : Element { }
602603
603604 [ ElementData ( "False" , ValueType . Boolean ) ]
605+ [ HideElement ]
604606 public class V_False : Element
605607 {
606608 public override bool ConstantSupported < T > ( ) =>
@@ -1117,9 +1119,11 @@ public override Element Optimize()
11171119 }
11181120
11191121 [ ElementData ( "Null" , ValueType . Any ) ]
1122+ [ HideElement ]
11201123 public class V_Null : Element { }
11211124
11221125 [ ElementData ( "Number" , ValueType . Number ) ]
1126+ [ HideElement ]
11231127 public class V_Number : Element
11241128 {
11251129 public static readonly V_Number LargeArbitraryNumber = new V_Number ( 9999 ) ;
@@ -1476,6 +1480,7 @@ public override Element Optimize()
14761480 [ Parameter ( "{0}" , ValueType . Any , typeof ( V_Null ) ) ]
14771481 [ Parameter ( "{1}" , ValueType . Any , typeof ( V_Null ) ) ]
14781482 [ Parameter ( "{2}" , ValueType . Any , typeof ( V_Null ) ) ]
1483+ [ HideElement ]
14791484 public class V_String : Element
14801485 {
14811486 public V_String ( string text , params Element [ ] stringValues ) : base ( NullifyEmptyValues ( stringValues ) )
@@ -1510,6 +1515,7 @@ protected override bool OverrideEquals(IWorkshopTree other)
15101515 [ Parameter ( "{0}" , ValueType . Any , typeof ( V_Null ) ) ]
15111516 [ Parameter ( "{1}" , ValueType . Any , typeof ( V_Null ) ) ]
15121517 [ Parameter ( "{2}" , ValueType . Any , typeof ( V_Null ) ) ]
1518+ [ HideElement ]
15131519 public class V_CustomString : Element
15141520 {
15151521 public string Text { get ; }
@@ -1630,6 +1636,7 @@ public class V_ThrottleOf : Element { }
16301636 public class V_TotalTimeElapsed : Element { }
16311637
16321638 [ ElementData ( "True" , ValueType . Boolean ) ]
1639+ [ HideElement ]
16331640 public class V_True : Element
16341641 {
16351642 public override bool ConstantSupported < T > ( ) =>
0 commit comments