source: cpp/frams/model/defassign-f0-GDK.h @ 109

Last change on this file since 109 was 109, checked in by sz, 10 years ago

source reorganization (see README)
new feature added: part/joint shapes (see frams/_demos/part_shapes.cpp)

  • Property svn:eol-style set to native
File size: 673 bytes
RevLine 
[109]1
2
3
4
5void Part::defassign()
6{
7mass=1.0;
8shape=0;
9size=1.0;
10scale.x=1.0;
11scale.y=1.0;
12scale.z=1.0;
13density=1.0;
14friction=0.4;
15ingest=0.25;
16assim=0.25;
17vis_style="part";
18vsize=0.2;
19vcolor.x=0.5;
20vcolor.y=0.5;
21vcolor.z=0.5;
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
50
51
52
53
54
55
56void Joint::defassign()
57{
58p1_refno=-1;
59p2_refno=-1;
60d.x=0;
61d.y=0;
62d.z=0;
63shape=0;
64stif=1.0;
65rotstif=1.0;
66stamina=0.25;
67vis_style="joint";
68vcolor.x=0.5;
69vcolor.y=0.5;
70vcolor.z=0.5;
71}
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107void Neuro::defassign()
108{
109part_refno=-1;
110joint_refno=-1;
111
112vis_style="neuro";
113}
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147void NeuroConn::defassign()
148{
149n1_refno=-1;
150n2_refno=-1;
151weight=1.0;
152}
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
Note: See TracBrowser for help on using the repository browser.