class Goods : public Objects
{
public:
Goods() { }
Goods(const Goods& goods) { this->mesh = goods.mesh; }
Goods(SkinnedMesh *_mesh) : Objects(_mesh) { }
}
class Pallet : public Goods
{
Pallet() { }
Pallet(const Pallet& pallet) { this->mesh = pallet.mesh; }
Pallet(SkinnedMesh *_mesh) : Goods(_mesh) { }
};
class Carton : public Goods
{
Carton() { }
Carton(const Carton& carton) { this->mesh = carton.mesh; }
Carton(SkinnedMesh *_mesh) : Goods(_mesh) { }
}
You may consider Pallet and Carton may exhibit different behaviours.
Thanks
Jack