Skip to content

Commit 37c2a7a

Browse files
authored
[Car coin hunt] Use a mesh shape for the bridge (#934)
- Don't show in changelog
1 parent 404fc18 commit 37c2a7a

2 files changed

Lines changed: 115 additions & 48 deletions

File tree

examples/3d-car-coin-hunt/3d-car-coin-hunt.json

Lines changed: 115 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"firstLayout": "Menu",
33
"gdVersion": {
4-
"build": 247,
4+
"build": 250,
55
"major": 5,
6-
"minor": 5,
6+
"minor": 6,
77
"revision": 0
88
},
99
"properties": {
@@ -676,6 +676,17 @@
676676
"name": "assets\\Cubemap_Sky_02-512x512_Top.png",
677677
"smoothed": true,
678678
"userAdded": false
679+
},
680+
{
681+
"file": "assets/Road Slant Curve.glb",
682+
"kind": "model3D",
683+
"metadata": "",
684+
"name": "Road Slant Curve.glb",
685+
"userAdded": false,
686+
"origin": {
687+
"identifier": "https://asset-resources.gdevelop.io/public-resources/3D City Kit (Roads)/Ground/0ecdbe600c3efca2dfce618286081460c6a079cff0dce79f21ae9514ca4a2896_Road Slant Curve.glb",
688+
"name": "Road Slant Curve.glb"
689+
}
679690
}
680691
]
681692
},
@@ -1200,7 +1211,7 @@
12001211
"gridColor": 10401023,
12011212
"gridAlpha": 0.5,
12021213
"snap": true,
1203-
"zoomFactor": 0.6455105703311488,
1214+
"zoomFactor": 0.2550455473354349,
12041215
"windowMask": false,
12051216
"selectedLayer": ""
12061217
},
@@ -2844,28 +2855,10 @@
28442855
"layer": "",
28452856
"name": "RoadStraight",
28462857
"persistentUuid": "0866ad67-4291-45e1-bd2e-acb5d17c92fc",
2847-
"width": 665,
2848-
"x": 2163,
2858+
"width": 384,
2859+
"x": 2304,
28492860
"y": -1152,
2850-
"z": 134,
2851-
"zOrder": 42,
2852-
"numberProperties": [],
2853-
"stringProperties": [],
2854-
"initialVariables": []
2855-
},
2856-
{
2857-
"angle": 90,
2858-
"customSize": true,
2859-
"depth": 8,
2860-
"height": 384,
2861-
"layer": "",
2862-
"name": "RoadStraight",
2863-
"persistentUuid": "baab3977-f3bb-4c36-a33e-6d2972b42526",
2864-
"rotationY": -10,
2865-
"width": 768,
2866-
"x": 2112,
2867-
"y": -1862,
2868-
"z": 67,
2861+
"z": 192,
28692862
"zOrder": 42,
28702863
"numberProperties": [],
28712864
"stringProperties": [],
@@ -3026,24 +3019,6 @@
30263019
"stringProperties": [],
30273020
"initialVariables": []
30283021
},
3029-
{
3030-
"angle": -90,
3031-
"customSize": true,
3032-
"depth": 8,
3033-
"height": 384,
3034-
"layer": "",
3035-
"name": "RoadStraight",
3036-
"persistentUuid": "a836ecad-7cb3-4928-b975-bc2e24743699",
3037-
"rotationY": -10,
3038-
"width": 768,
3039-
"x": 2112,
3040-
"y": -442,
3041-
"z": 67,
3042-
"zOrder": 42,
3043-
"numberProperties": [],
3044-
"stringProperties": [],
3045-
"initialVariables": []
3046-
},
30473022
{
30483023
"angle": 0,
30493024
"customSize": false,
@@ -3430,13 +3405,14 @@
34303405
},
34313406
{
34323407
"angle": 180,
3433-
"customSize": false,
3434-
"height": 0,
3408+
"customSize": true,
3409+
"depth": 282,
3410+
"height": 128,
34353411
"keepRatio": true,
34363412
"layer": "",
34373413
"name": "LargeBuildingF",
34383414
"persistentUuid": "ccd4a0fa-581c-4933-a10b-f2c1ef120793",
3439-
"width": 0,
3415+
"width": 384,
34403416
"x": 1728,
34413417
"y": 576,
34423418
"zOrder": 49,
@@ -5773,7 +5749,7 @@
57735749
"width": 0,
57745750
"x": 2496,
57755751
"y": -1053,
5776-
"z": 155,
5752+
"z": 220,
57775753
"zOrder": 27,
57785754
"numberProperties": [],
57795755
"stringProperties": [],
@@ -5790,7 +5766,7 @@
57905766
"width": 0,
57915767
"x": 2496,
57925768
"y": -850,
5793-
"z": 155,
5769+
"z": 220,
57945770
"zOrder": 27,
57955771
"numberProperties": [],
57965772
"stringProperties": [],
@@ -5807,11 +5783,45 @@
58075783
"width": 0,
58085784
"x": 2496,
58095785
"y": -957,
5810-
"z": 155,
5786+
"z": 220,
58115787
"zOrder": 27,
58125788
"numberProperties": [],
58135789
"stringProperties": [],
58145790
"initialVariables": []
5791+
},
5792+
{
5793+
"angle": 90,
5794+
"customSize": true,
5795+
"depth": 200,
5796+
"height": 384,
5797+
"keepRatio": true,
5798+
"layer": "",
5799+
"name": "RoadSlantCurve",
5800+
"persistentUuid": "edaa0e5c-9ef8-4535-b971-f467399280b4",
5801+
"width": 896,
5802+
"x": 2048,
5803+
"y": -512,
5804+
"zOrder": 51,
5805+
"numberProperties": [],
5806+
"stringProperties": [],
5807+
"initialVariables": []
5808+
},
5809+
{
5810+
"angle": 270,
5811+
"customSize": true,
5812+
"depth": 200,
5813+
"height": 384,
5814+
"keepRatio": true,
5815+
"layer": "",
5816+
"name": "RoadSlantCurve",
5817+
"persistentUuid": "9682a9f3-a627-4a6b-af65-6552e41235b9",
5818+
"width": 896,
5819+
"x": 2048,
5820+
"y": -1792,
5821+
"zOrder": 51,
5822+
"numberProperties": [],
5823+
"stringProperties": [],
5824+
"initialVariables": []
58155825
}
58165826
],
58175827
"objects": [
@@ -7078,6 +7088,60 @@
70787088
"width": 31,
70797089
"animations": []
70807090
}
7091+
},
7092+
{
7093+
"assetStoreId": "77785b7ed5263fd81fe111b09c6fedb1097f5be225025799071d40e11fde7df9",
7094+
"name": "RoadSlantCurve",
7095+
"type": "Scene3D::Model3DObject",
7096+
"variables": [],
7097+
"effects": [],
7098+
"behaviors": [
7099+
{
7100+
"name": "Physics3D",
7101+
"type": "Physics3D::Physics3DBehavior",
7102+
"object3D": "Object3D",
7103+
"bodyType": "Static",
7104+
"bullet": false,
7105+
"fixedRotation": false,
7106+
"shape": "Mesh",
7107+
"shapeOrientation": "Z",
7108+
"shapeDimensionA": 0,
7109+
"shapeDimensionB": 0,
7110+
"shapeDimensionC": 0,
7111+
"density": 1,
7112+
"friction": 7,
7113+
"restitution": 0.1,
7114+
"linearDamping": 0.1,
7115+
"angularDamping": 0.1,
7116+
"gravityScale": 1,
7117+
"layers": 17,
7118+
"masks": 17,
7119+
"shapeOffsetX": 0,
7120+
"shapeOffsetY": 0,
7121+
"shapeOffsetZ": 0,
7122+
"massCenterOffsetX": 0,
7123+
"massCenterOffsetY": 0,
7124+
"massCenterOffsetZ": 0,
7125+
"massOverride": 0
7126+
}
7127+
],
7128+
"content": {
7129+
"centerLocation": "ObjectCenter",
7130+
"crossfadeDuration": 0.10000000149011612,
7131+
"depth": 200,
7132+
"height": 384,
7133+
"isCastingShadow": true,
7134+
"isReceivingShadow": true,
7135+
"keepAspectRatio": false,
7136+
"materialType": "StandardWithoutMetalness",
7137+
"modelResourceName": "Road Slant Curve.glb",
7138+
"originLocation": "TopLeft",
7139+
"rotationX": 90,
7140+
"rotationY": 0,
7141+
"rotationZ": 0,
7142+
"width": 768,
7143+
"animations": []
7144+
}
70817145
}
70827146
],
70837147
"objectsFolderStructure": {
@@ -7162,6 +7226,9 @@
71627226
{
71637227
"objectName": "RoadBend"
71647228
},
7229+
{
7230+
"objectName": "RoadSlantCurve"
7231+
},
71657232
{
71667233
"objectName": "Grass"
71677234
}
34.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)