PhyCompoundObject Class Reference
PhyCompoundObject class. More...

Public Member Functions | |
PhyCompoundObject (QVector< PhyObject * > objs, World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity()) | |
Create a compound object merging all PhyObject passed, the transformation matrix of each PhyObject will be considered as the relative displacement respect to the centre of this body. | |
virtual | ~PhyCompoundObject () |
Destroy this object. | |
const QVector< PhyObject * > | bodies () |
return PhyObject composing this object | |
Protected Member Functions | |
void | createPrivateObject () |
Engine encapsulation. |
Detailed Description
PhyCompoundObject class.
\
- Motivation
- Represent a collection of object merged togheter.
- Description
- Warnings
- Warnings
Definition at line 37 of file phycompoundobject.h.
Constructor & Destructor Documentation
PhyCompoundObject | ( | QVector< PhyObject * > | objs, |
World * | world, | ||
QString | name = "unamed" , |
||
const wMatrix & | tm = wMatrix::identity() |
||
) |
Create a compound object merging all PhyObject passed, the transformation matrix of each PhyObject will be considered as the relative displacement respect to the centre of this body.
- Warning:
- All objects present in objs will not be more simulated by underlying physics engine, but they are still accessible !!
Definition at line 27 of file phycompoundobject.cpp.
References PhyObject::changedMatrix(), and PhyCompoundObject::createPrivateObject().
~PhyCompoundObject | ( | ) | [virtual] |
Destroy this object.
Definition at line 38 of file phycompoundobject.cpp.
Member Function Documentation
const QVector<PhyObject*> bodies | ( | ) | [inline] |
return PhyObject composing this object
Definition at line 52 of file phycompoundobject.h.
void createPrivateObject | ( | ) | [protected] |
Engine encapsulation.
Reimplemented from PhyObject.
Definition at line 68 of file phycompoundobject.cpp.
References wMatrix::identity(), PhyObject::mass(), PhyObject::priv, PhyObject::setMass(), and WObject::world().
Referenced by PhyCompoundObject::PhyCompoundObject().
The documentation for this class was generated from the following files:
- worldsim/include/phycompoundobject.h
- worldsim/src/phycompoundobject.cpp