source:
cpp/frams/model/defassign-f0-SDK.h
@
980
Last change on this file since 980 was 952, checked in by , 5 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[286] | 1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/ |
[915] | 2 | // Copyright (C) 1999-2020 Maciej Komosinski and Szymon Ulatowski. |
[286] | 3 | // See LICENSE.txt for details. |
[109] | 4 | |
5 | ||
6 | ||
7 | ||
[121] | 8 | |
[109] | 9 | void Part::defassign() |
10 | { | |
11 | shape=0; | |
12 | size=1.0; | |
13 | scale.x=1.0; | |
14 | scale.y=1.0; | |
15 | scale.z=1.0; | |
[270] | 16 | hollow=0; |
[109] | 17 | density=1.0; |
18 | friction=0.4; | |
19 | ingest=0.25; | |
20 | assim=0.25; | |
21 | vis_style="part"; | |
22 | vsize=0.2; | |
[507] | 23 | vcolor.x=1.0; |
24 | vcolor.y=1.0; | |
25 | vcolor.z=1.0; | |
[109] | 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 | ||
[932] | 60 | |
[934] | 61 | |
62 | ||
[952] | 63 | |
64 | ||
65 | ||
[934] | 66 | void Part_MinMaxDef::defassign() |
67 | { | |
[945] | 68 | volume=4.18879; |
[934] | 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 | ||
[952] | 106 | |
107 | ||
108 | ||
[109] | 109 | void Joint::defassign() |
110 | { | |
111 | p1_refno=-1; | |
112 | p2_refno=-1; | |
113 | d.x=0; | |
114 | d.y=0; | |
115 | d.z=0; | |
116 | shape=0; | |
[915] | 117 | hinge_pos.x=0; |
118 | hinge_pos.y=0; | |
119 | hinge_pos.z=0; | |
120 | hinge_rot.x=0; | |
121 | hinge_rot.y=0; | |
122 | hinge_rot.z=0; | |
123 | hinge_limit_x[0]=-1.5708; | |
124 | hinge_limit_x[1]=1.5708; | |
125 | hinge_limit_y[0]=-1.5708; | |
126 | hinge_limit_y[1]=1.5708; | |
[109] | 127 | stif=1.0; |
128 | rotstif=1.0; | |
129 | stamina=0.25; | |
130 | vis_style="joint"; | |
[507] | 131 | vcolor.x=1.0; |
132 | vcolor.y=1.0; | |
133 | vcolor.z=1.0; | |
[109] | 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 | ||
[932] | 170 | |
[934] | 171 | |
172 | ||
[952] | 173 | |
174 | ||
175 | ||
[109] | 176 | void Neuro::defassign() |
177 | { | |
178 | part_refno=-1; | |
179 | joint_refno=-1; | |
180 | ||
181 | vis_style="neuro"; | |
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 | ||
[932] | 216 | |
[934] | 217 | |
218 | ||
[952] | 219 | |
220 | ||
221 | ||
[109] | 222 | void NeuroConn::defassign() |
223 | { | |
224 | n1_refno=-1; | |
225 | n2_refno=-1; | |
226 | weight=1.0; | |
227 | } | |
228 | ||
229 | ||
230 | ||
231 | ||
232 | ||
233 | ||
234 | ||
235 | ||
236 | ||
237 | ||
238 | ||
239 | ||
240 | ||
241 | ||
242 | ||
243 | ||
244 | ||
245 | ||
246 | ||
[932] | 247 | |
[952] | 248 | |
249 | ||
250 |
Note: See TracBrowser
for help on using the repository browser.