Back to index

supertuxkart  0.5+dfsg1
btContactSolverInfo.h
Go to the documentation of this file.
00001 /*
00002 Bullet Continuous Collision Detection and Physics Library
00003 Copyright (c) 2003-2006 Erwin Coumans  http://continuousphysics.com/Bullet/
00004 
00005 This software is provided 'as-is', without any express or implied warranty.
00006 In no event will the authors be held liable for any damages arising from the use of this software.
00007 Permission is granted to anyone to use this software for any purpose, 
00008 including commercial applications, and to alter it and redistribute it freely, 
00009 subject to the following restrictions:
00010 
00011 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
00012 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
00013 3. This notice may not be removed or altered from any source distribution.
00014 */
00015 
00016 #ifndef CONTACT_SOLVER_INFO
00017 #define CONTACT_SOLVER_INFO
00018 
00019 struct btContactSolverInfoData
00020 {
00021        btScalar      m_tau;
00022        btScalar      m_damping;
00023        btScalar      m_friction;
00024        btScalar      m_timeStep;
00025        btScalar      m_restitution;
00026        int           m_numIterations;
00027        btScalar      m_maxErrorReduction;
00028        btScalar      m_sor;
00029        btScalar      m_erp;
00030 
00031 };
00032 
00033 struct btContactSolverInfo : public btContactSolverInfoData
00034 {
00035 
00036        inline btContactSolverInfo()
00037        {
00038               m_tau = btScalar(0.6);
00039               m_damping = btScalar(1.0);
00040               m_friction = btScalar(0.3);
00041               m_restitution = btScalar(0.);
00042               m_maxErrorReduction = btScalar(20.);
00043               m_numIterations = 10;
00044               m_erp = btScalar(0.4);
00045               m_sor = btScalar(1.3);
00046        }
00047 
00048        
00049 };
00050 
00051 #endif //CONTACT_SOLVER_INFO