Skip to content

Commit 1f86daf

Browse files
committed
Replace the car by a rover.
1 parent 8b9f537 commit 1f86daf

File tree

5 files changed

+31
-92
lines changed

5 files changed

+31
-92
lines changed

examples/3d-endless-terrain/3d-endless-terrain.json

Lines changed: 31 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,6 @@
6767
},
6868
"resources": {
6969
"resources": [
70-
{
71-
"file": "assets/Planet 8.glb",
72-
"kind": "model3D",
73-
"metadata": "",
74-
"name": "Planet 8.glb",
75-
"userAdded": false,
76-
"origin": {
77-
"identifier": "https://asset-resources.gdevelop.io/public-resources/3D Space Station/Ball/87c8948d24a56e38d835fb23eebb7a57d38826c1f3bf90e70a7626b901b8438c_Planet 8.glb",
78-
"name": "Planet 8.glb"
79-
}
80-
},
81-
{
82-
"file": "Sedan Sports.glb",
83-
"kind": "model3D",
84-
"metadata": "",
85-
"name": "Sedan Sports.glb",
86-
"userAdded": false
87-
},
8870
{
8971
"file": "assets/Line light joystick border LeftRightt.png",
9072
"kind": "image",
@@ -132,6 +114,17 @@
132114
"name": "New image",
133115
"smoothed": true,
134116
"userAdded": false
117+
},
118+
{
119+
"file": "assets/Rover 1.glb",
120+
"kind": "model3D",
121+
"metadata": "",
122+
"name": "Rover 1.glb",
123+
"userAdded": false,
124+
"origin": {
125+
"identifier": "https://asset-resources.gdevelop.io/public-resources/3D Space Station/Vehicles/79f8b0b9d51820ceb5681de2c6be7e971c32d03c4efdb0d2f37a12cd8e150dc5_Rover 1.glb",
126+
"name": "Rover 1.glb"
127+
}
135128
}
136129
],
137130
"resourceFolders": []
@@ -171,7 +164,7 @@
171164
"name": "Player",
172165
"objects": [
173166
{
174-
"name": "Car"
167+
"name": "Rover"
175168
},
176169
{
177170
"name": "FlyingCar"
@@ -254,60 +247,8 @@
254247
}
255248
},
256249
{
257-
"assetStoreId": "ef1e0acbeff96c2a750b169344ecb6d952d743dd82a07805fb2ea3a6427fa000",
258-
"name": "Planet8",
259-
"type": "Scene3D::Model3DObject",
260-
"variables": [],
261-
"effects": [],
262-
"behaviors": [
263-
{
264-
"name": "Physics3D",
265-
"type": "Physics3D::Physics3DBehavior",
266-
"object3D": "Object3D",
267-
"bodyType": "Dynamic",
268-
"bullet": false,
269-
"fixedRotation": false,
270-
"shape": "Sphere",
271-
"shapeOrientation": "Z",
272-
"shapeDimensionA": 0,
273-
"shapeDimensionB": 0,
274-
"shapeDimensionC": 0,
275-
"shapeOffsetX": 0,
276-
"shapeOffsetY": 0,
277-
"shapeOffsetZ": 0,
278-
"massCenterOffsetX": 0,
279-
"massCenterOffsetY": 0,
280-
"massCenterOffsetZ": 0,
281-
"massOverride": 0,
282-
"density": 1,
283-
"friction": 0.3,
284-
"restitution": 0.1,
285-
"linearDamping": 0.1,
286-
"angularDamping": 0.1,
287-
"gravityScale": 1,
288-
"layers": 17,
289-
"masks": 17
290-
}
291-
],
292-
"content": {
293-
"centerLocation": "ObjectCenter",
294-
"crossfadeDuration": 0.10000000149011612,
295-
"depth": 56.25951647758485,
296-
"height": 51.73768758773805,
297-
"keepAspectRatio": true,
298-
"materialType": "StandardWithoutMetalness",
299-
"modelResourceName": "Planet 8.glb",
300-
"originLocation": "ObjectCenter",
301-
"rotationX": 90,
302-
"rotationY": 0,
303-
"rotationZ": 90,
304-
"width": 56.18215978145602,
305-
"animations": []
306-
}
307-
},
308-
{
309-
"assetStoreId": "cddab55130dbd5a0b36f763200e876fb514aa608e1b057a136ebdb5f80006e2c",
310-
"name": "Car",
250+
"assetStoreId": "d84413206470a02527e8d86b364a4fcda36411dfe383bf61d571244d385a8ef2",
251+
"name": "Rover",
311252
"type": "Scene3D::Model3DObject",
312253
"variables": [
313254
{
@@ -333,8 +274,8 @@
333274
"shape": "Box",
334275
"shapeOrientation": "Z",
335276
"shapeDimensionA": 74,
336-
"shapeDimensionB": 39,
337-
"shapeDimensionC": 27,
277+
"shapeDimensionB": 65,
278+
"shapeDimensionC": 47,
338279
"density": 1,
339280
"friction": 10,
340281
"restitution": 0.5,
@@ -373,10 +314,10 @@
373314
"frontWheelOffsetX": -5,
374315
"wheelOffsetY": 0,
375316
"wheelOffsetZ": 0,
376-
"wheelRadius": 6,
317+
"wheelRadius": 8,
377318
"wheelWidth": 5,
378-
"brakeTorqueMax": 3000,
379-
"handBrakeTorqueMax": 6000,
319+
"brakeTorqueMax": 6000,
320+
"handBrakeTorqueMax": 12000,
380321
"hasBackWheelDrive": true,
381322
"hasFrontWheelDrive": true,
382323
"pitchRollAngleMax": 89
@@ -437,16 +378,16 @@
437378
],
438379
"content": {
439380
"centerLocation": "ObjectCenter",
440-
"crossfadeDuration": 0,
381+
"crossfadeDuration": 0.10000000149011612,
441382
"depth": 74,
442383
"height": 74,
443384
"keepAspectRatio": true,
444385
"materialType": "StandardWithoutMetalness",
445-
"modelResourceName": "Sedan Sports.glb",
386+
"modelResourceName": "Rover 1.glb",
446387
"originLocation": "ModelOrigin",
447388
"rotationX": 90,
448389
"rotationY": 0,
449-
"rotationZ": -90,
390+
"rotationZ": 90,
450391
"width": 74,
451392
"animations": []
452393
}
@@ -871,10 +812,7 @@
871812
"objectName": "FarHeightMap3D"
872813
},
873814
{
874-
"objectName": "Planet8"
875-
},
876-
{
877-
"objectName": "Car"
815+
"objectName": "Rover"
878816
},
879817
{
880818
"objectName": "FlyingCar"
@@ -1270,7 +1208,7 @@
12701208
},
12711209
"parameters": [
12721210
"",
1273-
"Car",
1211+
"Rover",
12741212
"TileSize / 2",
12751213
"TileSize / 2",
12761214
""
@@ -1287,8 +1225,8 @@
12871225
},
12881226
"parameters": [
12891227
"NearHeightMap3D",
1290-
"Car.X()",
1291-
"Car.Y()",
1228+
"Rover.X()",
1229+
"Rover.Y()",
12921230
""
12931231
]
12941232
}
@@ -1299,10 +1237,10 @@
12991237
"value": "Scene3D::Base3DBehavior::SetZ"
13001238
},
13011239
"parameters": [
1302-
"Car",
1240+
"Rover",
13031241
"Object3D",
13041242
"=",
1305-
"NearHeightMap3D.FieldZ(Car.X(), Car.Y())"
1243+
"NearHeightMap3D.FieldZ(Rover.X(), Rover.Y()) + 10"
13061244
]
13071245
}
13081246
]
@@ -2620,7 +2558,7 @@
26202558
" }",
26212559
"",
26222560
" forceUpdate() {",
2623-
" if (this.hasChangedThisFrame || this.isDirty) {",
2561+
" if (this.isDirty) {",
26242562
" this.isDirty = false;",
26252563
" this.mesh.geometry.attributes.position.needsUpdate = true;",
26262564
" this.mesh.geometry.computeVertexNormals();",
@@ -3343,10 +3281,11 @@
33433281
"objectGroups": []
33443282
},
33453283
{
3284+
"description": "Update the height map. This is done automatically at the end of every frame, but it can be used manually to avoid a 1-frame delay.",
33463285
"fullName": "Update height map",
33473286
"functionType": "Action",
33483287
"name": "ForceUpdate",
3349-
"sentence": "Update height map of _PARAM0_",
3288+
"sentence": "Update the height map of _PARAM0_",
33503289
"events": [
33513290
{
33523291
"type": "BuiltinCommonInstructions::JsCode",
-70.2 KB
Binary file not shown.
-41.7 KB
Binary file not shown.
320 KB
Binary file not shown.
94.9 KB
Loading

0 commit comments

Comments
 (0)