source:
cpp/frams/model/defassign-f0-SDK.h
@
346
Last change on this file since 346 was 288, checked in by , 10 years ago | |
---|---|
|
|
File size: 854 bytes |
Rev | Line | |
---|---|---|
[286] | 1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/ |
2 | // Copyright (C) 1999-2015 Maciej Komosinski and Szymon Ulatowski. | |
3 | // See LICENSE.txt for details. | |
[109] | 4 | |
5 | ||
6 | ||
7 | ||
[121] | 8 | |
[109] | 9 | void Part::defassign() |
10 | { | |
11 | mass=1.0; | |
12 | shape=0; | |
13 | size=1.0; | |
14 | scale.x=1.0; | |
15 | scale.y=1.0; | |
16 | scale.z=1.0; | |
[270] | 17 | hollow=0; |
[109] | 18 | density=1.0; |
19 | friction=0.4; | |
20 | ingest=0.25; | |
21 | assim=0.25; | |
22 | vis_style="part"; | |
23 | vsize=0.2; | |
24 | vcolor.x=0.5; | |
25 | vcolor.y=0.5; | |
26 | vcolor.z=0.5; | |
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 | 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; | |
69 | stif=1.0; | |
70 | rotstif=1.0; | |
71 | stamina=0.25; | |
72 | vis_style="joint"; | |
73 | vcolor.x=0.5; | |
74 | vcolor.y=0.5; | |
75 | vcolor.z=0.5; | |
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 | ||
111 | ||
112 | void Neuro::defassign() | |
113 | { | |
114 | part_refno=-1; | |
115 | joint_refno=-1; | |
116 | ||
117 | vis_style="neuro"; | |
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 | ||
151 | ||
152 | void NeuroConn::defassign() | |
153 | { | |
154 | n1_refno=-1; | |
155 | n2_refno=-1; | |
156 | weight=1.0; | |
157 | } | |
158 | ||
159 | ||
160 | ||
161 | ||
162 | ||
163 | ||
164 | ||
165 | ||
166 | ||
167 | ||
168 | ||
169 | ||
170 | ||
171 | ||
172 | ||
173 | ||
174 | ||
175 | ||
176 |
Note: See TracBrowser
for help on using the repository browser.