Changeset 1569


Ignore:
Timestamp:
Jul 4, 2012, 11:30:52 AM (8 years ago)
Author:
touky
Message:

Works better now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/BtPhysTest.cpp

    r1568 r1569  
    4646#define EXTRA_HEIGHT 1.f
    4747
    48 int gNumObjects = 16;
     48int gNumObjects = 64;
    4949
    5050BtPhysTest::BtPhysTest(bool editor)
     
    5353    m_camera = new Camera(vec3(0.f, 600.f, 0.f),
    5454                          vec3(0.f, 0.f, 0.f),
    55                           vec3(0, 0, -1));
    56     m_camera->SetRotation(quat::fromeuler_yxz(0.f, -40.f, 0.f));
     55                          vec3(0, 1, 0));
     56    m_camera->SetRotation(quat::fromeuler_xyz(0.f, 0.f, 0.f));
    5757    m_camera->SetPerspective(90.f, 1280.f, 960.f, .1f, 1000.f);
    5858        //m_camera->SetOrtho(1280.f / 6, 960.f / 6, -1000.f, 1000.f);
     
    9090                m_bt_collision_shapes << groundShape;
    9191        m_ground_mesh.Compile("[sc#ddd afcb110 1 110 -1]");
    92                 m_rigid_mesh.Compile("[sc#ada afcb1 1 1 -.1]");
    9392
    9493                //m_bt_collision_shapes << new btCylinderShape(btVector3(.5f,.5f,.5f));
     
    122121                        // Re-using the same collision is better for memory usage and performance
    123122                        btCollisionShape* colShape = new btBoxShape(btVector3(1,1,1));
     123                        m_rigid_mesh.Compile("[sc#ada afcb2 2 2 -.1]");
     124
    124125                        m_bt_collision_shapes << colShape;
    125126                        m_bt_dynamic_shapes << colShape;
     
    259260
    260261                m_camera->SetTarget(BarycenterLocation);
    261                 m_camera->SetPosition(BarycenterLocation + vec3(-10.0f, 10.0f, .0f));
     262                m_camera->SetPosition(BarycenterLocation + vec3(-20.0f, 5.0f, .0f));
    262263        }
    263264}
Note: See TracChangeset for help on using the changeset viewer.