-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstickman.cc
49 lines (43 loc) · 1.04 KB
/
stickman.cc
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
48
49
/*
* =====================================================================================
*
* Filename: stickman.cc
*
* Description: a stickman class
*
* Version: 1.0
* Created: 04.04.2017 14:21:19
* Revision: none
* Compiler: gcc
*
* Author: Arvid Krein (mn), [email protected]
* Company: -
*
* =====================================================================================
*/
#include "stickman.h"
//Bodypart class functions
Bodypart::Bodypart()
{
kraftpartikel tempPart;
for(std::vector<Beznode>::iterator i = mPath.mNodes.begin(); i < mPath.mNodes.end(); ++i)
{
tempPart.setX(i->getX());
tempPart.setY(i->getY());
vJoints.push_back(tempPart);
}
}
Bodypart::Bodypart(Bezpath bodyPath)
{
mPath = bodyPath;
kraftpartikel tempPart;
for(std::vector<Beznode>::iterator i = mPath.mNodes.begin(); i < mPath.mNodes.end(); ++i)
{
tempPart.setX(i->getX());
tempPart.setY(i->getY());
vJoints.push_back(tempPart);
}
}
void Bodypart::iterate(float t)
{
}