-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchain.h
More file actions
36 lines (26 loc) · 749 Bytes
/
chain.h
File metadata and controls
36 lines (26 loc) · 749 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
// track class 1
//
#ifndef __CHAIN_H__
#define __CHAIN_H__
#include "myobj.h"
#include "trackdesign.h"
#include "chain.h"
#include "track.h"
class Chain:public MyObject {
private:
///////////// Control //////////////
///////////// Display //////////////
dReal joint_arrow; // length of joint arrow drawen at joint locations
LinkDesignID link_design;
int buf;
public:
static int showbit[LINK_PARTS]; // used to selectively display parts of each link
// NOTE: static
Chain(dWorldID _world, dSpaceID _space, TrackDesignID design,
LinkDesignID n_link_design);
void CalculateForces();
void Draw();
dJointID CreateLinkHinge(dWorldID world, dBodyID one, dBodyID two, dReal l_2);
};
typedef Chain *ChainID;
#endif // __CHAIN_H__