Archived

This topic is now archived and is closed to further replies.

Physik

triangle/triangle collision detection(3d)

Recommended Posts

do you think it''s possible to write a CD, which only uses + - * / ? no sqrt, sin, tan ... etc.. !! i''ve never seen such a CD, is it just impossible or too slow? thanks!

Share this post


Link to post
Share on other sites
Of course it is possible, as long as you are computing collisions in 2D. You can do this using bounding poligons (e.g. rectangles).

------------------------------------------------------------
"To a computer, chaos is just another kind of order."

Share this post


Link to post
Share on other sites
Well, you can make lookup tables for the trigonometric functions using their infinite series forms (which are defined with +, -, * and /). There are a few fast ways to calculate square roots on the fly using basic arithmetic.

Share this post


Link to post
Share on other sites
well, to be honest, i recently made such a CD and it works just great! very accurate, very easy to understand! but i don''t know how fast it actually is! it really doesn''t need any sqrt, sin, cos, tan....etc.. therefore i guess it isn''t too slow...
but i''m a bit confused about it ''cause i never heard of such a CD before.....

@Profus
it''s in 3d!

what do you think?

Share this post


Link to post
Share on other sites