Historique des modifications - Message

Message #10691

Sujet: Test de gravité - Irrlicht + Newton


Type Date Auteur Contenu
Création du message 22-08-2012 16:30:31 Kaze
J'ai pas très bien compris vu que dans mon main j'ai :

Code c++ :

#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


mon newtonWorld a toujours été static, tout comme le newtonBody.

Retour

Options Liens officiels Caractéristiques Statistiques Communauté
Préférences cookies
Corrections
irrlicht
irrklang
irredit
irrxml
Propulsé par Django
xhtml 1.0
css 2.1
884 membres
1440 sujets
11337 messages
Dernier membre inscrit: Saidov17
193 invités en ligne
membre en ligne: -
RSS Feed