Skip to content

Commit 74974d2

Browse files
authored
[Experimental] [Height map] Fix physics not enabling when an image is used (#1907)
1 parent 9181c9d commit 74974d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extensions/community/HeightMap3D.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "HeightMap3D",
1010
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/10e0a26c0d500830dfe23b94138beb0ef61607ba62bca05a5aa5c849777f1b06_terrain.svg",
1111
"shortDescription": "A terrain with hills where 3D physics objects can stand.",
12-
"version": "1.0.1",
12+
"version": "1.0.2",
1313
"description": [
1414
"A terrain with hills where objects with the 3D physics behavior can stand.",
1515
"",
@@ -263,7 +263,8 @@
263263
"",
264264
" this.physicsBodyUpdater = physics.bodyUpdater;",
265265
" physics.bodyUpdater = this;",
266-
" physics.recreateBody();",
266+
" // Calling `recreateBody` directly doesn't work.",
267+
" this.heightMap.hasChangedThisFrame = true;",
267268
" }",
268269
"",
269270
" updateIfNeeded() {",

0 commit comments

Comments
 (0)