Introduction to 3D Game Engine Design Using DirectX 9 and C#

O

OABB (object-aligned bounding box)

collision detection, 169

collision testing, 172

object-aligned bounding box. See OABB

object-oriented approach

reasons for use, 4

Object3D attribute, Listener class, 289

Object3D class

bounding radius for collision testing, 172

classes inheriting from

Cloth class, 366

GameLights class, 218

Model class, 171

ParticleGenerator class, 154

TerrainQuad class, 124

declaring, 81

methods

Set methods, 189

InRect method, 182

objects

animating, 85

basic color properties, 106

characteristics, 80

common methods, inheriting from interfaces, 81

flags to determine rendering, 81

movement of, 85

3D rendering, 80

Octree technique, 87

See also Quadtree

offset attribute, Wheel class, 321

OneTimeSceneInit method, GameEngine class, 73

OnKeyDown method, CD3DApplication class, 63

changes made to, 75

OpenGL API calls

compared to Direct3D API calls, 4

Operator enumeration

And member, 245

comparison operators, 237

defining, 237

Equals member, 241

Logic class, defining, 240

opponent

implementing as sensor methods, 273

Thinker class, 259

Opponent class

Eyes properly, 279

inheritance and attributes, 279

initializing, 278

opponents abilities

AI, 234

hard coded rules, 234

OpponentUpdate method, Model class, 195

Optimize method, Mesh class, 170

OptimizeBaseLevelOfDetail method, ProgressiveMesh class, 181

OptimizeInPlace method, Mesh class, 170

option screens, building blocks for, 42

OptionScreen class

constructor, 48

declaration, 47

designing, 48

methods

AddButton method, 49

Render method, 49, 51

SetMousePosition method, 49

orientation

billboards, 142

characteristic of object, 80

Listener class, 291

ownship, 171

Ownship class

constructor, 300

Update method, 301

OwnshipUpdate method, Model class, 192, 194

players vehicle, 192

Категории