C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

class Model

Defined in:  C4Models.h
The Model class is the base class for all animatable models.
Definition

class Model : public Node, public ListElement<Model>, public Registrable<Model, ModelRegistration>

Member Functions
Model::Get Returns a new instances of a particular type of model.
Model::GetModelType Returns the model type.
Model::GetRootAnimator Returns the root animator assigned to a model.
Model::SetRootAnimator Sets the root animator assigned to a model.
Model::FindNode Finds a node having a specific name.
Model::Animate Runs the animators assigned to a model.
Constructor

Model(ModelType type = kModelUnknown);

Parameters
type The model type.
Description
The Model class serves as the base class for all animatable model nodes. A Model instance is not normally constructed directly, but is created by calling the Model::Get function or by constructing an instance of the GenericModel class. The Model::Get function should be used to create instances of models whose type has been registered with the ModelRegistration class. A GenericModel instance should be constructed to explicitly create a model without a registered type.
Base Classes
Node A Model node is a scene graph node.
ListElement<Model> Used internally by the World Manager.
Registrable<Model, ModelRegistration> Custom model types can be registered with the engine.
See Also

ModelRegistration

GenericModel

Bone