Skip to content

Commit 3dd418b

Browse files
committed
Fixed applying force physics examples.
1 parent 043f36f commit 3dd418b

8 files changed

Lines changed: 23 additions & 17 deletions

File tree

physics/apply_force/example/apply_force.collection

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,6 @@ embedded_instances {
290290
" x: 700.0\\n"
291291
" y: 50.0\\n"
292292
"}\\n"
293-
"color {\\n"
294-
" x: 0.101960786\\n"
295-
" y: 0.2\\n"
296-
" z: 0.6\\n"
297-
"}\\n"
298293
"text: \\\"Click to apply force to all blocks\\\"\\n"
299294
"font: \\\"/assets/text48.font\\\"\\n"
300295
"material: \\\"/builtins/fonts/label.material\\\"\\n"

physics/apply_force/game.project

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ max_instances = 32765
6161
max_emitter_count = 1024
6262

6363
[render]
64-
clear_color_blue = 1.0
65-
clear_color_green = 1.0
66-
clear_color_red = 1.0
64+
clear_color_blue = 0.183594
65+
clear_color_green = 0.164063
66+
clear_color_red = 0.160156
6767

physics/apply_force/thumbnail.png

18.4 KB
Loading

physics/apply_linear_impulse/example/apply_linear_impulse.collection

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ embedded_instances {
4949
"}\n"
5050
""
5151
position {
52-
x: 480.0
52+
x: 360.0
5353
y: 351.0
5454
}
5555
}
@@ -102,7 +102,7 @@ embedded_instances {
102102
"}\n"
103103
""
104104
position {
105-
x: 480.0
105+
x: 360.0
106106
y: 65.0
107107
}
108108
}
@@ -119,12 +119,12 @@ embedded_instances {
119119
"font: \\\"/fonts/text32.font\\\"\\n"
120120
"material: \\\"/builtins/fonts/label-df.material\\\"\\n"
121121
"\"\n"
122-
" position {\n"
123-
" x: 480.0\n"
124-
" y: 435.0\n"
125-
" }\n"
126122
"}\n"
127123
""
124+
position {
125+
x: 360.0
126+
y: 680.0
127+
}
128128
}
129129
embedded_instances {
130130
id: "ceiling"
@@ -175,7 +175,15 @@ embedded_instances {
175175
"}\n"
176176
""
177177
position {
178-
x: 480.0
178+
x: 360.0
179179
y: 600.0
180180
}
181181
}
182+
embedded_instances {
183+
id: "go"
184+
data: "components {\n"
185+
" id: \"dd\"\n"
186+
" component: \"/example/dd.gui\"\n"
187+
"}\n"
188+
""
189+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
material: "/builtins/materials/gui.material"
2+
adjust_reference: ADJUST_REFERENCE_PARENT

physics/apply_linear_impulse/game.project

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ main_collection = /example/apply_linear_impulse.collectionc
55
shared_state = 1
66

77
[display]
8-
width = 960
9-
height = 640
8+
width = 720
9+
height = 720
1010
high_dpi = 1
1111

1212
[android]
@@ -27,3 +27,4 @@ title = defold-apply-linear-impulse-example
2727
clear_color_red = 0.160156
2828
clear_color_green = 0.164063
2929
clear_color_blue = 0.183594
30+
-2.62 KB
Loading

0 commit comments

Comments
 (0)