3D height map
A terrain with hills where 3D physics objects can stand.
Authors and contributors to this experimental extension: D8H.
Warning
This is an extension made by a community member and it only got through a light review by the GDevelop extension team. As such, we can't guarantee it meets all the quality standards of fully reviewed extensions.
A terrain with hills where objects with the 3D physics behavior can stand.
A terrain can be built from:
- an image file
- noise function (open the project online)
Tip
Learn how to install new extensions by following a step-by-step guide.
3D height map
A terrain with hills in 3D.
Object actions
Update height map
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.
See parameters
- Parameter 0: 👾 Object
Technical note: parameter 1 are internal parameters handled by GDevelop.
Load height map
Load a height map from an image file.
See parameters
- Parameter 0: 👾 Object
- Parameter 1 (imageResource): Image
- Parameter 2 (🔢 Number): Image cropping offset on X
- Parameter 3 (🔢 Number): Image cropping offset on Y
Technical note: parameter 4 are internal parameters handled by GDevelop.
Grid value
Change the field value at a grid index. The value is bewteen 0 and 1.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Operator
- Parameter 2 (🔢 Number): Value
- Parameter 3 (🔢 Number): X grid index
- Parameter 4 (🔢 Number): Y grid index
Technical note: parameter 5 are internal parameters handled by GDevelop.
Object conditions
Field point Z
Compare the field Z for a given position in the scene.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔢 Number): Value to compare
- Parameter 3 (🔢 Number): X position in the scene
- Parameter 4 (🔢 Number): Y position in the scene
Technical note: parameter 5 are internal parameters handled by GDevelop.
Grid dimension X
Compare the number of points in the grid on X axis.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔢 Number): Value to compare
Technical note: parameter 3 are internal parameters handled by GDevelop.
Grid dimension Y
Compare the number of points in the grid on Y axis.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔢 Number): Value to compare
Technical note: parameter 3 are internal parameters handled by GDevelop.
Grid value
Compare the field value at a grid index. The value is bewteen 0 and 1.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔢 Number): Value to compare
- Parameter 3 (🔢 Number): X grid index
- Parameter 4 (🔢 Number): Y grid index
Technical note: parameter 5 are internal parameters handled by GDevelop.
Object expressions
Expression | Description | |
---|---|---|
Object.FieldZ(number, number) |
Return the field Z for a given position in the scene. | |
🔢 Number | X position in the scene | |
🔢 Number | Y position in the scene | |
Object.GridDimensionX() |
Return the number of points in the grid on X axis. | |
Object.GridDimensionY() |
Return the number of points in the grid on Y axis. | |
Object.GridValue(number, number) |
Return the field value at a grid index. The value is bewteen 0 and 1. | |
🔢 Number | X grid index | |
🔢 Number | Y grid index |
3D physics height map
A terrain with hills where 3D physics objects can stand.
No expressions for this behavior.
This page is an auto-generated reference page about the 3D height map extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.