-
Notifications
You must be signed in to change notification settings - Fork 384
Expand file tree
/
Copy pathTimeStepController.h
More file actions
47 lines (37 loc) · 1.01 KB
/
TimeStepController.h
File metadata and controls
47 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef __TIMESTEPCONTROLLER_h__
#define __TIMESTEPCONTROLLER_h__
#include "Common/Common.h"
#include "TimeStep.h"
#include "SimulationModel.h"
#include "CollisionDetection.h"
namespace PBD
{
class TimeStepController : public TimeStep
{
public:
// static int SOLVER_ITERATIONS;
// static int SOLVER_ITERATIONS_V;
static int NUM_SUB_STEPS;
static int MAX_ITERATIONS;
static int MAX_ITERATIONS_V;
static int VELOCITY_UPDATE_METHOD;
static int ENUM_VUPDATE_FIRST_ORDER;
static int ENUM_VUPDATE_SECOND_ORDER;
protected:
int m_velocityUpdateMethod;
unsigned int m_iterations;
unsigned int m_iterationsV;
unsigned int m_subSteps;
unsigned int m_maxIterations;
unsigned int m_maxIterationsV;
virtual void initParameters();
void positionConstraintProjection(SimulationModel &model);
void velocityConstraintProjection(SimulationModel &model);
public:
TimeStepController();
virtual ~TimeStepController(void);
virtual void step(SimulationModel &model);
virtual void reset();
};
}
#endif