Quote:
Originally Posted by lopsided98
Thanks, this should help fix my problem.
In the future, though, it might be good to have some way of gracefully recovering from this error, rather than segfaulting.
|
I'll definitely see what I can do. From what I can tell it's a Div By Zero error, as some trigonometric functions give a 0 result for a 90 degree angle. Coupling that with the fact that Y doesn't change, it produces an error. Perhaps I can do a check for if it's 90 degrees to adjust it to something like 89.5 and print out a notice message.