uifw/AvKon/aknphysics/src/aknphysicsengine.cpp
branchRCL_3
changeset 56 d48ab3b357f1
parent 55 aecbbf00d063
child 72 a5e7a4f63858
equal deleted inserted replaced
55:aecbbf00d063 56:d48ab3b357f1
    58 // ---------------------------------------------------------------------------
    58 // ---------------------------------------------------------------------------
    59 //
    59 //
    60 CAknPhysicsEngine::~CAknPhysicsEngine()
    60 CAknPhysicsEngine::~CAknPhysicsEngine()
    61     {
    61     {
    62     DeletePhysics();
    62     DeletePhysics();
    63     delete iAlfClient;
    63     if ( iAlfClient )
       
    64         {
       
    65         iAlfClient->Close();
       
    66         delete iAlfClient;
       
    67         }       
    64     }
    68     }
    65 
    69 
    66 
    70 
    67 // ---------------------------------------------------------------------------
    71 // ---------------------------------------------------------------------------
    68 // CAknPhysicsEngine::WorldExists
    72 // CAknPhysicsEngine::WorldExists
   265     {
   269     {
   266     // Call collision detection (step
   270     // Call collision detection (step
   267     dSpaceCollide ( iSpace, this , &CAknPhysicsEngine::CallbackFunc );
   271     dSpaceCollide ( iSpace, this , &CAknPhysicsEngine::CallbackFunc );
   268 
   272 
   269     // Take a simulation step 
   273     // Take a simulation step 
   270     dWorldQuickStep( iWorldId, REAL( 0.1 ) ); 
   274     dWorldQuickStep( iWorldId, REAL( 0.06 ) ); 
   271 
   275 
   272     // Remove all joints in the contact
   276     // Remove all joints in the contact
   273     dJointGroupEmpty( iContactGroup );
   277     dJointGroupEmpty( iContactGroup );
   274     }
   278     }
   275 
   279