Game Development Community

James Ford's Resources

SpherePointGen [T3D]

This is a helper class for generating random points within a sphere. You can tweak parameters such as radius and point count, preview the distribution live in the engine, and dump them to a text file when you are happy with the results.

Author James Ford Date 08/30/2009 (10:31 pm) Comment 10 comments

TScriptArray Object

A script-based array object modeled after the C++ Vector class. Has some useful methods already implemented and tested: clear, push_back, pop_back, push_front, pop_front, insert, find, erase, erase_fast, getRandom, reverse, sort...

Author James Ford Date 07/17/2008 (4:24 pm) Comment 16 comments

Console Output (printf) Helpers

Six macros/functions for making console output from C++ easier by automatically preappending the outputting function's name and other info.

Author James Ford Date 04/03/2008 (5:30 pm) Comment 2 comments

A simple Raycast between t2dSceneObject(s) in TGB 1.7.2

TGB doesn't have an obvious way to "raycast" to test distances between objects ( taking into account collision shapes ), so thats what this little code does.

Author James Ford Date 04/03/2008 (5:30 pm) Comment 3 comments