#include <S2_Object.h>
Collaboration diagram for Object:
Public Member Functions | |
Object () | |
virtual | ~Object () |
void | Debug () |
Bookkeeping methods | |
ObjectID | GetId () |
Model creation (Factory) and managing methods | |
void | SetNaturalModel (Model::ModelType mt) |
Model * | GetNaturalModel () |
void | CreateParticle (Real mass=1.0, const P3D &pos=P3D(0, 0, 0), const V3D &vel=V3D(0, 0, 0)) |
void | CreateRigid (Real mass=1.0, const M3D &Ib=M3D(true), const P3D &pos=P3D(0, 0, 0), const V3D &vel=V3D(0, 0, 0), const Quat &ori=Quat(0, 0, 0, 1), const V3D &velrot=V3D(0, 0, 0)) |
Particle * | GetParticle () |
Rigid * | GetRigid () |
Private Member Functions | |
Bookkeeping methods related to internal state-changes. Accessible only to Universe. | |
bool | IsAllocated () const |
bool | IsDirty () const |
void | NotifyAllocated () |
void | NotifyDeallocated () |
Private Attributes | |
Bookkeeping attributes | |
ObjectID | m_id |
unsigned int | m_flags |
[ALLOCATED, DIRTY, ...] for internal use only | |
Model managing attributes | |
Model * | m_pNaturalModel |
Natural (creation) Model. | |
Model * | m_vecModels [S2_NUM_MODEL_TYPES] |
Friends | |
class | Universe |
Doesn't necessarily mean that it behaves in a friendly way, though :-P. |
This class represents a generic a animated object with basic functionality.
Offers basic animation functionality independent of the object Model type.
Funcionalitat:
Notes:
IMPORTANT: El canvi de Model d'un Object, ja sigui a petició de l'aplicació o per motius interns, té conseqüències importants:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Doesn't necessarily mean that it behaves in a friendly way, though :-P.
|
|
[ALLOCATED, DIRTY, ...] for internal use only
|
|
|
|
Natural (creation) Model.
|
|
|