|
67 | 67 | }, |
68 | 68 | "resources": { |
69 | 69 | "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 | | - }, |
88 | 70 | { |
89 | 71 | "file": "assets/Line light joystick border LeftRightt.png", |
90 | 72 | "kind": "image", |
|
132 | 114 | "name": "New image", |
133 | 115 | "smoothed": true, |
134 | 116 | "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 | + } |
135 | 128 | } |
136 | 129 | ], |
137 | 130 | "resourceFolders": [] |
|
171 | 164 | "name": "Player", |
172 | 165 | "objects": [ |
173 | 166 | { |
174 | | - "name": "Car" |
| 167 | + "name": "Rover" |
175 | 168 | }, |
176 | 169 | { |
177 | 170 | "name": "FlyingCar" |
|
254 | 247 | } |
255 | 248 | }, |
256 | 249 | { |
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", |
311 | 252 | "type": "Scene3D::Model3DObject", |
312 | 253 | "variables": [ |
313 | 254 | { |
|
333 | 274 | "shape": "Box", |
334 | 275 | "shapeOrientation": "Z", |
335 | 276 | "shapeDimensionA": 74, |
336 | | - "shapeDimensionB": 39, |
337 | | - "shapeDimensionC": 27, |
| 277 | + "shapeDimensionB": 65, |
| 278 | + "shapeDimensionC": 47, |
338 | 279 | "density": 1, |
339 | 280 | "friction": 10, |
340 | 281 | "restitution": 0.5, |
|
373 | 314 | "frontWheelOffsetX": -5, |
374 | 315 | "wheelOffsetY": 0, |
375 | 316 | "wheelOffsetZ": 0, |
376 | | - "wheelRadius": 6, |
| 317 | + "wheelRadius": 8, |
377 | 318 | "wheelWidth": 5, |
378 | | - "brakeTorqueMax": 3000, |
379 | | - "handBrakeTorqueMax": 6000, |
| 319 | + "brakeTorqueMax": 6000, |
| 320 | + "handBrakeTorqueMax": 12000, |
380 | 321 | "hasBackWheelDrive": true, |
381 | 322 | "hasFrontWheelDrive": true, |
382 | 323 | "pitchRollAngleMax": 89 |
|
437 | 378 | ], |
438 | 379 | "content": { |
439 | 380 | "centerLocation": "ObjectCenter", |
440 | | - "crossfadeDuration": 0, |
| 381 | + "crossfadeDuration": 0.10000000149011612, |
441 | 382 | "depth": 74, |
442 | 383 | "height": 74, |
443 | 384 | "keepAspectRatio": true, |
444 | 385 | "materialType": "StandardWithoutMetalness", |
445 | | - "modelResourceName": "Sedan Sports.glb", |
| 386 | + "modelResourceName": "Rover 1.glb", |
446 | 387 | "originLocation": "ModelOrigin", |
447 | 388 | "rotationX": 90, |
448 | 389 | "rotationY": 0, |
449 | | - "rotationZ": -90, |
| 390 | + "rotationZ": 90, |
450 | 391 | "width": 74, |
451 | 392 | "animations": [] |
452 | 393 | } |
|
871 | 812 | "objectName": "FarHeightMap3D" |
872 | 813 | }, |
873 | 814 | { |
874 | | - "objectName": "Planet8" |
875 | | - }, |
876 | | - { |
877 | | - "objectName": "Car" |
| 815 | + "objectName": "Rover" |
878 | 816 | }, |
879 | 817 | { |
880 | 818 | "objectName": "FlyingCar" |
|
1270 | 1208 | }, |
1271 | 1209 | "parameters": [ |
1272 | 1210 | "", |
1273 | | - "Car", |
| 1211 | + "Rover", |
1274 | 1212 | "TileSize / 2", |
1275 | 1213 | "TileSize / 2", |
1276 | 1214 | "" |
|
1287 | 1225 | }, |
1288 | 1226 | "parameters": [ |
1289 | 1227 | "NearHeightMap3D", |
1290 | | - "Car.X()", |
1291 | | - "Car.Y()", |
| 1228 | + "Rover.X()", |
| 1229 | + "Rover.Y()", |
1292 | 1230 | "" |
1293 | 1231 | ] |
1294 | 1232 | } |
|
1299 | 1237 | "value": "Scene3D::Base3DBehavior::SetZ" |
1300 | 1238 | }, |
1301 | 1239 | "parameters": [ |
1302 | | - "Car", |
| 1240 | + "Rover", |
1303 | 1241 | "Object3D", |
1304 | 1242 | "=", |
1305 | | - "NearHeightMap3D.FieldZ(Car.X(), Car.Y())" |
| 1243 | + "NearHeightMap3D.FieldZ(Rover.X(), Rover.Y()) + 10" |
1306 | 1244 | ] |
1307 | 1245 | } |
1308 | 1246 | ] |
|
2620 | 2558 | " }", |
2621 | 2559 | "", |
2622 | 2560 | " forceUpdate() {", |
2623 | | - " if (this.hasChangedThisFrame || this.isDirty) {", |
| 2561 | + " if (this.isDirty) {", |
2624 | 2562 | " this.isDirty = false;", |
2625 | 2563 | " this.mesh.geometry.attributes.position.needsUpdate = true;", |
2626 | 2564 | " this.mesh.geometry.computeVertexNormals();", |
|
3343 | 3281 | "objectGroups": [] |
3344 | 3282 | }, |
3345 | 3283 | { |
| 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.", |
3346 | 3285 | "fullName": "Update height map", |
3347 | 3286 | "functionType": "Action", |
3348 | 3287 | "name": "ForceUpdate", |
3349 | | - "sentence": "Update height map of _PARAM0_", |
| 3288 | + "sentence": "Update the height map of _PARAM0_", |
3350 | 3289 | "events": [ |
3351 | 3290 | { |
3352 | 3291 | "type": "BuiltinCommonInstructions::JsCode", |
|
0 commit comments