equal
deleted
inserted
replaced
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 |