nuclear@2: #ifndef COMP_XFORM_H_ nuclear@2: #define COMP_XFORM_H_ nuclear@2: nuclear@2: #include nuclear@2: #include "comp.h" nuclear@2: nuclear@2: class CompXForm : public Component { nuclear@2: public: nuclear@2: Matrix4x4 xform; nuclear@2: nuclear@2: CompXForm(); nuclear@2: }; nuclear@2: nuclear@2: class CompPRS : public Component { nuclear@2: private: nuclear@2: CompXForm *co_xform; // cached xform component of the parent object nuclear@2: nuclear@2: public: nuclear@2: Vector3 pos, scale; nuclear@2: Quaternion rot; nuclear@2: nuclear@2: CompPRS(); nuclear@2: nuclear@2: void update(); nuclear@2: }; nuclear@2: nuclear@2: nuclear@2: #endif // COMP_XFORM_H_