uifw/AvKon/aknphysics/inc/aknphysicsconstants.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 23:04:46 +0200
branchRCL_3
changeset 4 8ca85d2f0db7
parent 0 2f259fa3e83a
child 55 aecbbf00d063
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  AknPhysics constant definitions
*
*/


#ifndef AKNPHYSICSCONSTANTS_H
#define AKNPHYSICSCONSTANTS_H

// Physics Constants
const TInt KDefaultFriction( 10 );
const TInt KFps( 60 ); // desired framerate
const TInt KPhysicsTime( 1000000/KFps ); // timer value
const TInt KPhysicsMinTime( 8500 ); // ~1000000/(2*KFps);
const TInt KAknHighResMinWait( 500 ); // minimum wait time between callbacks
const TInt KAknHighResMaxWait( 100000 ); // maximum wait time between callbacks
const TInt KMaxContacts( 2 ); // max amount of contacts with 2 objects
const TInt KZDepth( 1000 ); // Just something
const TInt KSwipeDuration( 800000 ); // 800ms
const TReal KStepFactor( .00000001 ); // used in drag calculations
const TReal KErpFactor( 0.5 );
const TReal KCfmFactor( 0.001 );
const TReal KCfmSoftFactor( .01 );
const TReal KBounceFactor( .001 );
const TInt KFlickMaxDuration( 500000 );

#endif // AKNPHYSICSCONSTANTS_H