#ifndef TWENTIETH_HPP
#define TWENTIETH_HPP
#include "main.hpp"
class Physics
{
public :
Physics(irr::IrrlichtDevice *device, irr::video::IVideoDriver *driver, irr::scene::ISceneManager *sceneManager);
~Physics();
void Cube(irr::core::vector3df position, irr::core::vector3df taille, float masse);
void Update();
// Callbacks ---------------------------------------------------------------
// 1.53
/*
static void SetMeshTransformEvent(const NewtonBody* newtonBody, const float* matrix);
static void ApplyForceAndTorqueEvent(const NewtonBody* body);
*/
// 2.00
static void SetMeshTransformEvent(const NewtonBody* body, const float* matrix, int);
static void ApplyForceAndTorqueEvent(const NewtonBody* body, float, int);
// -------------------------------------------------------------------------
private :
irr::IrrlichtDevice* newtonDevice;
irr::video::IVideoDriver* newtonDriver;
irr::scene::ISceneManager* newtonSceneManager;
static NewtonWorld* newtonWorld;
static NewtonBody* newtonBody;
irr::scene::ISceneNode* newtonNode;
unsigned int lasttick;
};
#endif