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

Last change on this file since 659 was 528, checked in by Maciej Komosinski, 8 years ago
  • Part.m removed
  • Part.h becomes XPROP
  • validate more part and joint properties in Model.internalcheck()
  • Property svn:eol-style set to native
File size: 844 bytes
RevLine 
[286]1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
[507]2// Copyright (C) 1999-2016  Maciej Komosinski and Szymon Ulatowski.
[286]3// See LICENSE.txt for details.
[109]4
5
6
7
[121]8
[109]9void Part::defassign()
10{
11shape=0;
12size=1.0;
13scale.x=1.0;
14scale.y=1.0;
15scale.z=1.0;
[270]16hollow=0;
[109]17density=1.0;
18friction=0.4;
19ingest=0.25;
20assim=0.25;
21vis_style="part";
22vsize=0.2;
[507]23vcolor.x=1.0;
24vcolor.y=1.0;
25vcolor.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
60void Joint::defassign()
61{
62p1_refno=-1;
63p2_refno=-1;
64d.x=0;
65d.y=0;
66d.z=0;
67shape=0;
68stif=1.0;
69rotstif=1.0;
70stamina=0.25;
71vis_style="joint";
[507]72vcolor.x=1.0;
73vcolor.y=1.0;
74vcolor.z=1.0;
[109]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
108
109
110
111void Neuro::defassign()
112{
113part_refno=-1;
114joint_refno=-1;
115
116vis_style="neuro";
117}
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151void NeuroConn::defassign()
152{
153n1_refno=-1;
154n2_refno=-1;
155weight=1.0;
156}
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
Note: See TracBrowser for help on using the repository browser.