Colobot
|
3D model saved in model file More...
#include <model.h>
Public Member Functions | |
int | GetMeshCount () const |
Returns mesh count. | |
CModelMesh * | GetMesh (const std::string &name) |
Return a mesh with given name. | |
const CModelMesh * | GetMesh (const std::string &name) const |
Return a mesh with given name. | |
void | AddMesh (const std::string &name, CModelMesh &&mesh) |
Add new mesh with given name. | |
std::vector< std::string > | GetMeshNames () const |
Returns list of mesh names. | |
const std::vector< ModelCrashSphere > & | GetCrashSpheres () const |
Returns the model's crash spheres. | |
void | AddCrashSphere (const ModelCrashSphere &crashSphere) |
Adds a new crash sphere. | |
int | GetCrashSphereCount () const |
Returns number of crash spheres. | |
const ModelShadowSpot & | GetShadowSpot () const |
Returns the shadow spot associated with model (assumes it is present) | |
void | SetShadowSpot (const ModelShadowSpot &shadowSpot) |
Sets the shadow spot associated with model. | |
bool | HasShadowSpot () const |
Returns whether there is shadow spot. | |
const Math::Sphere & | GetCameraCollisionSphere () const |
Returns the optional shadow spot associated with model (assumes it is present) | |
void | SetCameraCollisionSphere (const Math::Sphere &sphere) |
Sets the shadow spot associated with model. | |
bool | HasCameraCollisionSphere () const |
Returns whether there is camera collision sphere. | |
3D model saved in model file