#include <World.h>
Public Member Functions | |
CBox (CWorld *world, const Vector3 &size) | |
~CBox () | |
float | GetDensity () |
Overrides CThing::GetDensity for CBox. | |
void | SetDensity (float d) |
Overrides CThing::SetDensity for CBox. | |
int | Type () |
Returns TYPE_CBOX. |
CBox::CBox | ( | CWorld * | world, | |
const Vector3 & | size | |||
) |
Constructor. A box must never be created this way. Use CWorld::CreateBox instead.
world | The CWorld instance that this box will belong to. | |
size | The size of the box as a vector (sizeX,sizeY,sizeZ). |
CBox::~CBox | ( | ) |
Destructor. A box must never be destroyed this way. Use CWorld::RemoveThing instead.