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

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

Added fields to characterize hinges in "solid shape"-type Models

  • Property svn:eol-style set to native
File size: 1.0 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
60void Joint::defassign()
61{
62p1_refno=-1;
63p2_refno=-1;
64d.x=0;
65d.y=0;
66d.z=0;
67shape=0;
68hinge_pos.x=0;
69hinge_pos.y=0;
70hinge_pos.z=0;
71hinge_rot.x=0;
72hinge_rot.y=0;
73hinge_rot.z=0;
74hinge_limit_x[0]=-1.5708;
75hinge_limit_x[1]=1.5708;
76hinge_limit_y[0]=-1.5708;
77hinge_limit_y[1]=1.5708;
78stif=1.0;
79rotstif=1.0;
80stamina=0.25;
81vis_style="joint";
82vcolor.x=1.0;
83vcolor.y=1.0;
84vcolor.z=1.0;
85}
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
121void Neuro::defassign()
122{
123part_refno=-1;
124joint_refno=-1;
125
126vis_style="neuro";
127}
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
161void NeuroConn::defassign()
162{
163n1_refno=-1;
164n2_refno=-1;
165weight=1.0;
166}
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
Note: See TracBrowser for help on using the repository browser.