Of course:PB wrote:...Any better tip to fix this?
look at the line:
Code: Select all
If Angle<0 Or Angle>4/5*#PI:Break:EndIf
If for example you write #PI/2 instead of 4/5*#PI, then when plane is just horizontal it bounds.

Of course:PB wrote:...Any better tip to fix this?
Code: Select all
If Angle<0 Or Angle>4/5*#PI:Break:EndIf