source:
cpp/frams/model/defassign-f0-SDK.h
@
932
Last change on this file since 932 was 932, checked in by , 4 years ago | |
---|---|
|
|
File size: 1.0 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 | |
[109] | 61 | void Joint::defassign() |
62 | { | |
63 | p1_refno=-1; | |
64 | p2_refno=-1; | |
65 | d.x=0; | |
66 | d.y=0; | |
67 | d.z=0; | |
68 | shape=0; | |
[915] | 69 | hinge_pos.x=0; |
70 | hinge_pos.y=0; | |
71 | hinge_pos.z=0; | |
72 | hinge_rot.x=0; | |
73 | hinge_rot.y=0; | |
74 | hinge_rot.z=0; | |
75 | hinge_limit_x[0]=-1.5708; | |
76 | hinge_limit_x[1]=1.5708; | |
77 | hinge_limit_y[0]=-1.5708; | |
78 | hinge_limit_y[1]=1.5708; | |
[109] | 79 | stif=1.0; |
80 | rotstif=1.0; | |
81 | stamina=0.25; | |
82 | vis_style="joint"; | |
[507] | 83 | vcolor.x=1.0; |
84 | vcolor.y=1.0; | |
85 | vcolor.z=1.0; | |
[109] | 86 | } |
87 | ||
88 | ||
89 | ||
90 | ||
91 | ||
92 | ||
93 | ||
94 | ||
95 | ||
96 | ||
97 | ||
98 | ||
99 | ||
100 | ||
101 | ||
102 | ||
103 | ||
104 | ||
105 | ||
106 | ||
107 | ||
108 | ||
109 | ||
110 | ||
111 | ||
112 | ||
113 | ||
114 | ||
115 | ||
116 | ||
117 | ||
118 | ||
119 | ||
120 | ||
121 | ||
[932] | 122 | |
[109] | 123 | void Neuro::defassign() |
124 | { | |
125 | part_refno=-1; | |
126 | joint_refno=-1; | |
127 | ||
128 | vis_style="neuro"; | |
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 | ||
[932] | 163 | |
[109] | 164 | void NeuroConn::defassign() |
165 | { | |
166 | n1_refno=-1; | |
167 | n2_refno=-1; | |
168 | weight=1.0; | |
169 | } | |
170 | ||
171 | ||
172 | ||
173 | ||
174 | ||
175 | ||
176 | ||
177 | ||
178 | ||
179 | ||
180 | ||
181 | ||
182 | ||
183 | ||
184 | ||
185 | ||
186 | ||
187 | ||
188 | ||
[932] | 189 |
Note: See TracBrowser
for help on using the repository browser.