All Code Archive Entries by Bill Stanbrook

Code Archives
TitleDescriptionCategoryDate
YawToEntity function (plus smart missile code).This function yaws the source entity to point to the target entity at the specified rate. Useful for turning bots to face waypoints, 2D-in-3D missiles, etc.3D Graphics - Maths2008-05-30
Snap to grid movementDemonstrates camerapicking a point on a grid and moving an object so that movement is snapped to the size of the grid cell3D Graphics - Maths2007-02-13
Lib to create an OBB and test if a point or entity is inside its spaceThis lib allows you to create and configure an Oriented Bounding Box (a box that is not locked to the dimensional axiis), and then test if a point or an entity has intruded into the OBB's space.3D Graphics - Maths2007-02-11
Triggerplate system for detecting intrusion eventsTriggers an event when an entity with a trigger atached collides with a triggerplate quad. Useful for visibility management, etc. Example includes vis code.3D Graphics - Maths2007-01-19
Store structured data in stringsFunctions to create and use structured data consisting of named records and value fields stored in stringsMiscellaneous2004-12-04
First person perspective movement & mouselooking codeThis code is designed as a basic framework to build a first person perspective game from3D Graphics - Misc2004-08-20
Get the name of a key, using its scancode.A function to get the name of a keyboard key, using its scancode value.User Input2004-06-06
Create a maximized sized window.Creates a window with the same size and position as a maximized window.Graphics2004-06-06
Gradually shrink camera viewport.Gradually shrinks the viewport like it's moving away from you.3D Graphics - Effects2004-02-04