Ignore:
Timestamp:
Jul 8, 2012, 6:16:57 PM (9 years ago)
Author:
touky
Message:

Behold the power of LolPhysics !
Added lol::phys::Simulation, lol::phys::EasyPhysics for easy physic uses.
Added PhysicsObject, wich hold EasyMesh & EasyPhysics components so it is easy to use. Easy seems to be the consensus.
BtPhysTest now works with new physics classes.

Known problem for this commit:
Physics is not properly setup.
There might be memory leaks, I don't think I've parsed all new/delete.
A LOT of primitives are not taken into account.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/BtPhysTest.h

    r1581 r1591  
    2424    Camera*                                                             m_camera;
    2525    bool                                                                m_ready;
     26
     27        lol::phys::Simulation*                          m_simulation;
     28        Array<PhysicsObject*>                           m_physobj_list;
     29        PhysicsObject*                                          m_ground_object;
     30
     31#if 0
    2632        EasyMesh                                                        m_ground_mesh;
    2733        EasyMesh                                                        m_rigid_mesh[6];
     
    4147        Array<btCollisionShape*>                                m_bt_collision_shapes;
    4248        Array<btCollisionShape*>                                m_bt_dynamic_shapes;
     49#endif
    4350};
    4451
Note: See TracChangeset for help on using the changeset viewer.