fix sphere triangle collision algorithm