#include <World.h>
Public Member Functions | |
World (Game *game, Physics *physics) | |
~World () | |
void | update (const float timeStep) |
bool | testInboundXZ (const Vec3 position) |
void | addLight (const char *name, const float px, const float py, const float pz, const float rx, const float ry, const float rz, const int length, const int fov, const int shadowCount, const float r, const float g, const float b) |
World provides both a graphical and physical model of a hilly landscape, upon the Player and Enemy objects can move. While gravitation affects all models that are set upon this world, this world prevents by its physical model that other physical entities would fall trough it. Also the lighting environment is setup here as well.
This class provides furthermore a set of ambient and kinematic objects that exist only for graphical representation reasons, like cars, ships etc.
Definition at line 24 of file World.h.
void World::addLight | ( | const char * | name, | |
const float | px, | |||
const float | py, | |||
const float | pz, | |||
const float | rx, | |||
const float | ry, | |||
const float | rz, | |||
const int | length, | |||
const int | fov, | |||
const int | shadowCount, | |||
const float | r, | |||
const float | g, | |||
const float | b | |||
) |
bool World::testInboundXZ | ( | const Vec3 | position | ) |
void World::update | ( | const float | timeStep | ) |