by James Dougherty (22 Submissions)
Category: Games
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
Thanks to Robert Rayment the VB version of TaylorDistance3D works right now.
This is another way to test for distance if you don't like to use the Sqr() Function. Its the Taylor/Maclaurin Series. The only problem is theres a Max Error of 3.5% in 2D and a Max error of 8.0% in 3D. So if you need exact accuracy don't use this. This can also be found in Andre LaMothe's Book. "Tricks Of The Windows Game Programming Gurus" Enjoy. -James-
Download Taylor Series VS Sqr() Distance Testing (2D & 3D) (UPDATE) (35 KB)