As of 7/15 I have been working on Collision Detection between 3D objects. Initially I was using the SAT (Separation Axis Test) algorithm to detect collision between objects but decided that it would be better to use the GJK (Gilbert-Johnson-Keerthi) + EPA (Expanding Polytope Algorithm) instead.
What does *const* mean? it simply informs the compiler and other programmers that a variable should not be modified. Reading Efficient C++, I came across a nice tip that I have been trying to implement in my game engine: Use const whenever possible.
It turns out that in C++, it is a good idea to always initialize objects of built-in type, because C++ only sometimes initializes them itself. Read on to learn more.
Namespaces in C++ offers a mechanism for expressing that some declarations belong together and their names shouldn’t clash with other names. Instead of using the using-directive you should make it a habit of doing the following: