C++ tip 8: Avoid using exceptions in destructors

C++ tip 8: Avoid using exceptions in destructors

C++ does not like destructors that emit exceptions. Therefore, make sure that in your design, your destructors never emit exceptions and if possible make sure that another non-destructive method takes care of handling any exceptions throw.

C++ tip 7: Be sure to copy all of an object's data members and its base class parts

C++ tip 7: Be sure to copy all of an object's data members and its base class parts

In C++ make sure to always copy all of your data members in the copy constructor and copy assignment. If you have derived classes, make sure to invoke your base class copy constructor.

C++ tip 6: Have assignment operators return a reference to *this

C++ tip 6: Have assignment operators return a reference to *this

If you are using any assignment operators in your classes, which I'm sure you are, make sure to return a reference to "*this".

Game Engine Update- Why I chose the GJK over the SAT algorithm

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.

C++ tip 5: Never call a virtual function during construction or destruction

C++ tip 5: Never call a virtual function during construction or destruction

Never call a virtual method inside a constructor or destructor in C++. If you do, you will get unintended errors.