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

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

Updated recommended ranges for Part volume so that they are based on the volume of a solid sphere with unit radius

  • 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";
22vsize=0.2;
23vcolor.x=1.0;
24vcolor.y=1.0;
25vcolor.z=1.0;
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
63void Part_MinMaxDef::defassign()
64{
65volume=4.18879;
66}
67
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
103void Joint::defassign()
104{
105p1_refno=-1;
106p2_refno=-1;
107d.x=0;
108d.y=0;
109d.z=0;
110shape=0;
111hinge_pos.x=0;
112hinge_pos.y=0;
113hinge_pos.z=0;
114hinge_rot.x=0;
115hinge_rot.y=0;
116hinge_rot.z=0;
117hinge_limit_x[0]=-1.5708;
118hinge_limit_x[1]=1.5708;
119hinge_limit_y[0]=-1.5708;
120hinge_limit_y[1]=1.5708;
121stif=1.0;
122rotstif=1.0;
123stamina=0.25;
124vis_style="joint";
125vcolor.x=1.0;
126vcolor.y=1.0;
127vcolor.z=1.0;
128}
129
130
131
132
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
167void Neuro::defassign()
168{
169part_refno=-1;
170joint_refno=-1;
171
172vis_style="neuro";
173}
174
175
176
177
178
179
180
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
210void NeuroConn::defassign()
211{
212n1_refno=-1;
213n2_refno=-1;
214weight=1.0;
215}
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
Note: See TracBrowser for help on using the repository browser.