#ifndef CUBE_H
#define CUBE_H

#include "object.h"

#include <btBulletDynamicsCommon.h>

class Cube : public Object {

public:
  Cube(const btVector3 &dim, btScalar mass = 1.0);
  Cube(btScalar width = 1.0, btScalar height = 1.0, btScalar depth = 1.0,
       btScalar mass = 1.0);
  ~Cube(); // Add destructor declaration

  btScalar lengths[3];

  static void luaBind(lua_State *s);
  QString toString() const override;
  void toPOV(QTextStream *s) const override;

  void renderInLocalFrame(btVector3 &minaabb, btVector3 &maxaabb) override;

protected:
  void init(btScalar width, btScalar height, btScalar depth, btScalar mass);
};

#endif // CUBE_H
