HelloPolycodeApp.h 507 B

123456789101112131415161718192021222324
  1. #include <Polycode.h>
  2. #include "PolycodeView.h"
  3. #include "Polycode3DPhysics.h"
  4. using namespace Polycode;
  5. class HelloPolycodeApp : public EventHandler {
  6. public:
  7. HelloPolycodeApp(PolycodeView *view);
  8. ~HelloPolycodeApp();
  9. bool Update();
  10. void handleEvent(Event *e);
  11. private:
  12. Core *core;
  13. PhysicsScene *scene;
  14. PhysicsVehicle *vehicleController;
  15. ScenePrimitive *testBox;
  16. ScenePrimitive *vehicle;
  17. SceneLabel *onGroundLabel;
  18. Number steeringValue;
  19. Number engineForce;
  20. bool breaking;
  21. };