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