source: cpp/frams/model/defassign-f0-SDK.h @ 1039

Last change on this file since 1039 was 1039, checked in by Maciej Komosinski, 4 years ago

Removed Part's "visual thickness" property

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
4
5
6
7
8
9void Part::defassign()
10{
11shape=0;
12size=1.0;
13scale.x=1.0;
14scale.y=1.0;
15scale.z=1.0;
16hollow=0;
17density=1.0;
18friction=0.4;
19ingest=0.25;
20assim=0.25;
21vis_style="part";
22vcolor.x=1.0;
23vcolor.y=1.0;
24vcolor.z=1.0;
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
56
57
58
59
60
61
62
63
64
65void Part_MinMaxDef::defassign()
66{
67volume=4.18879;
68}
69
70
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
107
108void Joint::defassign()
109{
110p1_refno=-1;
111p2_refno=-1;
112d.x=0;
113d.y=0;
114d.z=0;
115shape=0;
116hinge_pos.x=0;
117hinge_pos.y=0;
118hinge_pos.z=0;
119hinge_rot.x=0;
120hinge_rot.y=0;
121hinge_rot.z=0;
122hinge_limit_x[0]=-1.5708;
123hinge_limit_x[1]=1.5708;
124hinge_limit_y[0]=-1.5708;
125hinge_limit_y[1]=1.5708;
126stif=1.0;
127rotstif=1.0;
128stamina=0.25;
129vis_style="joint";
130vcolor.x=1.0;
131vcolor.y=1.0;
132vcolor.z=1.0;
133}
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175void Neuro::defassign()
176{
177part_refno=-1;
178joint_refno=-1;
179
180vis_style="neuro";
181}
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221void NeuroConn::defassign()
222{
223n1_refno=-1;
224n2_refno=-1;
225weight=1.0;
226}
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
Note: See TracBrowser for help on using the repository browser.