-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjectPathSimulator.h
More file actions
47 lines (34 loc) · 927 Bytes
/
Copy pathObjectPathSimulator.h
File metadata and controls
47 lines (34 loc) · 927 Bytes
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
#pragma once
#include <GLModel/GLModel.h>
#include <shared/defs.h>
#include <util/util.h>
#include "animTcl.h"
#include "BaseSimulator.h"
#include "BaseSystem.h"
#include "HermiteSpline.h"
#include <string>
#include "ThreeDModel.h"
#define T1 0.1
#define T2 0.9
#define A0 2000
#define SCENE 8.0
// a sample simulator
class ObjectPathSimulator : public BaseSimulator
{
public:
ObjectPathSimulator(const std::string& name, HermiteSpline* targetPath, ThreeDModel* targetObject);
~ObjectPathSimulator();
double distance(double time);
double d(double time); //Temp while I debug
int step(double time);
int init(double time)
{
m_threeDmodel->position;
// FOR NOW: set threeDmodel's velocity to a constant
return 0;
};
int command(int argc, myCONST_SPEC char** argv) { return TCL_OK; }
protected:
ThreeDModel* m_threeDmodel;
HermiteSpline* splinePath;
};