Warning, file /education/gcompris/external/qml-box2d/Box2D/Dynamics/b2TimeStep.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * Copyright (c) 2006-2011 Erin Catto http://www.box2d.org 0003 * 0004 * This software is provided 'as-is', without any express or implied 0005 * warranty. In no event will the authors be held liable for any damages 0006 * arising from the use of this software. 0007 * Permission is granted to anyone to use this software for any purpose, 0008 * including commercial applications, and to alter it and redistribute it 0009 * freely, subject to the following restrictions: 0010 * 1. The origin of this software must not be misrepresented; you must not 0011 * claim that you wrote the original software. If you use this software 0012 * in a product, an acknowledgment in the product documentation would be 0013 * appreciated but is not required. 0014 * 2. Altered source versions must be plainly marked as such, and must not be 0015 * misrepresented as being the original software. 0016 * 3. This notice may not be removed or altered from any source distribution. 0017 */ 0018 0019 #ifndef B2_TIME_STEP_H 0020 #define B2_TIME_STEP_H 0021 0022 #include <Box2D/Common/b2Math.h> 0023 0024 /// Profiling data. Times are in milliseconds. 0025 struct b2Profile 0026 { 0027 float32 step; 0028 float32 collide; 0029 float32 solve; 0030 float32 solveInit; 0031 float32 solveVelocity; 0032 float32 solvePosition; 0033 float32 broadphase; 0034 float32 solveTOI; 0035 }; 0036 0037 /// This is an internal structure. 0038 struct b2TimeStep 0039 { 0040 float32 dt; // time step 0041 float32 inv_dt; // inverse time step (0 if dt == 0). 0042 float32 dtRatio; // dt * inv_dt0 0043 int32 velocityIterations; 0044 int32 positionIterations; 0045 bool warmStarting; 0046 }; 0047 0048 /// This is an internal structure. 0049 struct b2Position 0050 { 0051 b2Vec2 c; 0052 float32 a; 0053 }; 0054 0055 /// This is an internal structure. 0056 struct b2Velocity 0057 { 0058 b2Vec2 v; 0059 float32 w; 0060 }; 0061 0062 /// Solver Data 0063 struct b2SolverData 0064 { 0065 b2TimeStep step; 0066 b2Position* positions; 0067 b2Velocity* velocities; 0068 }; 0069 0070 #endif